diff options
Diffstat (limited to 'src/main/java/com/juick/www/rss')
-rw-r--r-- | src/main/java/com/juick/www/rss/MessagesView.java | 2 | ||||
-rw-r--r-- | src/main/java/com/juick/www/rss/RepliesView.java | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/juick/www/rss/MessagesView.java b/src/main/java/com/juick/www/rss/MessagesView.java index 22649d91..06a42420 100644 --- a/src/main/java/com/juick/www/rss/MessagesView.java +++ b/src/main/java/com/juick/www/rss/MessagesView.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2020, Juick + * Copyright (C) 2008-2021, Juick * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/java/com/juick/www/rss/RepliesView.java b/src/main/java/com/juick/www/rss/RepliesView.java index 818444ca..98e6db1d 100644 --- a/src/main/java/com/juick/www/rss/RepliesView.java +++ b/src/main/java/com/juick/www/rss/RepliesView.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2020, Juick + * Copyright (C) 2008-2021, Juick * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -68,7 +68,7 @@ public class RepliesView extends AbstractRssFeedView { @Override protected void buildFeedMetadata(Map<String, Object> model, Channel feed, HttpServletRequest request) { feed.setTitle("Juick"); - feed.setLink("http://juick.com/"); + feed.setLink("https://juick.com/"); feed.setDescription("The latest comments at Juick"); MediaModule mediaModule = new MediaModuleImpl(); feed.getModules().add(mediaModule); @@ -76,7 +76,7 @@ public class RepliesView extends AbstractRssFeedView { private Item createRssItem(ResponseReply msg) { Item item = new Item(); - String messageUrl = String.format("http://juick.com/m/%d#%d", msg.getMid(), msg.getRid()); + String messageUrl = String.format("https://juick.com/m/%d#%d", msg.getMid(), msg.getRid()); String messageTitle = String.format("@%s:", msg.getUname()); String messageDescription = msg.isHtml() ? msg.getDescription() : MessageUtils.formatMessage(msg.getDescription()); item.setLink(messageUrl); @@ -92,12 +92,12 @@ public class RepliesView extends AbstractRssFeedView { MediaEntryModuleImpl module = new MediaEntryModuleImpl(); try { UrlReference reference = new UrlReference( - String.format("http://i.juick.com/photos-1024/%d-%d.%s", msg.getMid(), msg.getRid(), type)); + String.format("https://i.juick.com/photos-1024/%d-%d.%s", msg.getMid(), msg.getRid(), type)); MediaContent mediaContent = new MediaContent(reference); mediaContent.setType(type); Metadata metadata = new Metadata(); metadata.setThumbnail(new Thumbnail[]{new Thumbnail( - new URI(String.format("http://i.juick.com/ps/%d-%d.%s", msg.getMid(), msg.getRid(), type)))}); + new URI(String.format("https://i.juick.com/ps/%d-%d.%s", msg.getMid(), msg.getRid(), type)))}); module.setMetadata(metadata); module.setMediaContents(new MediaContent[]{mediaContent}); item.getModules().add(module); |