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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user