forked from Archives/Athou_commafeed
make sure the title is not too long
This commit is contained in:
@@ -57,7 +57,7 @@ public class FeedSubscriptionService {
|
|||||||
newSubscription = true;
|
newSubscription = true;
|
||||||
}
|
}
|
||||||
sub.setCategory(category);
|
sub.setCategory(category);
|
||||||
sub.setTitle(title);
|
sub.setTitle(title.substring(0, Math.min(128, title.length())));
|
||||||
feedSubscriptionDAO.saveOrUpdate(sub);
|
feedSubscriptionDAO.saveOrUpdate(sub);
|
||||||
|
|
||||||
if (newSubscription) {
|
if (newSubscription) {
|
||||||
|
|||||||
Reference in New Issue
Block a user