aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-27 04:38:20 +0300
committerGravatar Vitaly Takmazov2018-03-27 04:38:20 +0300
commit83dae6eb77c1e9e720c726af47451bcfea2bd14e (patch)
treee82e66e7a6fe6eab0bbc15cb70739961f585d237 /juick-server/src/main
parent463aa115b9a0b396f4c606fedf2201b53320cc54 (diff)
server: rss fix
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/rss/MessagesView.java2
1 files changed, 1 insertions, 1 deletions
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();