mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
make sure the title is not too long
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user