make sure the title is not too long

This commit is contained in:
Athou
2013-04-14 22:40:13 +02:00
parent 405d68168b
commit 48a53a188b

View File

@@ -57,7 +57,7 @@ public class FeedSubscriptionService {
newSubscription = true;
}
sub.setCategory(category);
sub.setTitle(title);
sub.setTitle(title.substring(0, Math.min(128, title.length())));
feedSubscriptionDAO.saveOrUpdate(sub);
if (newSubscription) {