diff options
author | Vitaly Takmazov | 2021-10-23 05:41:44 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-23 05:41:44 +0300 |
commit | 6b31c254b5a7ab6735c625459ba7936d9b2851e6 (patch) | |
tree | 3b876f21a8ab45502edb19561847e47604329a18 /src/main/java/com/juick/www/rss/RepliesView.java | |
parent | 37e6d26e02d51a4de257200bbf207712fa3a6980 (diff) |
RSS: add guids
Diffstat (limited to 'src/main/java/com/juick/www/rss/RepliesView.java')
-rw-r--r-- | src/main/java/com/juick/www/rss/RepliesView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/rss/RepliesView.java b/src/main/java/com/juick/www/rss/RepliesView.java index 98e6db1d..9cb98c94 100644 --- a/src/main/java/com/juick/www/rss/RepliesView.java +++ b/src/main/java/com/juick/www/rss/RepliesView.java @@ -28,6 +28,7 @@ import com.rometools.modules.mediarss.types.Thumbnail; import com.rometools.modules.mediarss.types.UrlReference; import com.rometools.rome.feed.rss.Channel; import com.rometools.rome.feed.rss.Description; +import com.rometools.rome.feed.rss.Guid; import com.rometools.rome.feed.rss.Item; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -80,7 +81,10 @@ public class RepliesView extends AbstractRssFeedView { String messageTitle = String.format("@%s:", msg.getUname()); String messageDescription = msg.isHtml() ? msg.getDescription() : MessageUtils.formatMessage(msg.getDescription()); item.setLink(messageUrl); - //item.setGuid(messageUrl); + Guid guid = new Guid(); + guid.setPermaLink(true); + guid.setValue(messageUrl); + item.setGuid(guid); item.setTitle(messageTitle); Description description = new Description(); description.setType("text/html"); |