forked from Archives/Athou_commafeed
strip html from the author field (fix #351)
This commit is contained in:
@@ -94,7 +94,7 @@ public class FeedParser {
|
|||||||
FeedUtils.toAbsoluteUrl(item.getLink(), feed.getLink()),
|
FeedUtils.toAbsoluteUrl(item.getLink(), feed.getLink()),
|
||||||
2048));
|
2048));
|
||||||
entry.setUpdated(validateDate(getEntryUpdateDate(item)));
|
entry.setUpdated(validateDate(getEntryUpdateDate(item)));
|
||||||
entry.setAuthor(FeedUtils.truncate(item.getAuthor(), 128));
|
entry.setAuthor(item.getAuthor());
|
||||||
|
|
||||||
FeedEntryContent content = new FeedEntryContent();
|
FeedEntryContent content = new FeedEntryContent();
|
||||||
content.setContent(getContent(item));
|
content.setContent(getContent(item));
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ public class FeedUpdateService {
|
|||||||
|
|
||||||
FeedEntry update = null;
|
FeedEntry update = null;
|
||||||
if (existing == null) {
|
if (existing == null) {
|
||||||
|
entry.setAuthor(FeedUtils.truncate(FeedUtils.handleContent(
|
||||||
|
entry.getAuthor(), feed.getLink(), true), 128));
|
||||||
FeedEntryContent content = entry.getContent();
|
FeedEntryContent content = entry.getContent();
|
||||||
content.setTitle(FeedUtils.truncate(FeedUtils.handleContent(
|
content.setTitle(FeedUtils.truncate(FeedUtils.handleContent(
|
||||||
content.getTitle(), feed.getLink(), true), 2048));
|
content.getTitle(), feed.getLink(), true), 2048));
|
||||||
@@ -70,5 +72,4 @@ public class FeedUpdateService {
|
|||||||
metricsBean.entryUpdated(statusUpdateList.size());
|
metricsBean.entryUpdated(statusUpdateList.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user