From 83dae6eb77c1e9e720c726af47451bcfea2bd14e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 27 Mar 2018 04:38:20 +0300 Subject: server: rss fix --- juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java') diff --git a/juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java b/juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java index 9e1de074..c0ae4a97 100644 --- a/juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java +++ b/juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java @@ -135,7 +135,7 @@ public class MessagesView extends AbstractRssFeedView { String type = msg.getAttachmentType().equals("jpg") ? "image/jpeg" : "image/png"; MediaEntryModuleImpl module = new MediaEntryModuleImpl(); try { - UrlReference reference = new UrlReference(msg.getAttachment().getUrl()); + UrlReference reference = new UrlReference(MessageUtils.attachmentUrl(msg)); MediaContent mediaContent = new MediaContent(reference); mediaContent.setType(type); Metadata metadata = new Metadata(); -- cgit v1.2.3