make sure the title is not too long

This commit is contained in:
Athou
2013-04-16 12:57:40 +02:00
parent 94251d2be7
commit 703a3bf0d5

View File

@@ -61,7 +61,10 @@ public class FeedUpdateService {
if (foundEntry == null) {
FeedEntryContent content = entry.getContent();
content.setContent(handleContent(content.getContent()));
content.setTitle(handleContent(content.getTitle()));
String title = handleContent(content.getTitle());
content.setTitle(title.substring(0,
Math.min(2048, title.length())));
entry.setInserted(Calendar.getInstance().getTime());
addFeedToEntry(entry, feed);