From 9429a966eb484c0adc7f2e815016a3d82bfcb09f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 6 Sep 2021 15:25:07 +0300 Subject: HTTPS links in RSS --- src/main/java/com/juick/www/rss/MessagesView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/com/juick/www/rss/MessagesView.java b/src/main/java/com/juick/www/rss/MessagesView.java index e69eadea..22649d91 100644 --- a/src/main/java/com/juick/www/rss/MessagesView.java +++ b/src/main/java/com/juick/www/rss/MessagesView.java @@ -84,14 +84,14 @@ public class MessagesView extends AbstractRssFeedView { feed.setDescription(String.format("The latest messages by @%s at Juick", user.getName())); String title = String.format("%s - Juick", user.getName()); feed.setTitle(title); - String link = String.format("http://juick.com/%s/", user.getName()); + String link = String.format("https://juick.com/%s/", user.getName()); feed.setLink(link); Image rssImage = new Image(); rssImage.setUrl(webApp.getAvatarUrl(user)); rssImage.setTitle(title); rssImage.setLink(link); feed.setImage(rssImage); - String href = String.format("http://rss.juick.com/%s/blog", user.getName()); + String href = String.format("https://rss.juick.com/%s/blog", user.getName()); AtomLinkModule atomLinkModule = new AtomLinkModuleImpl(); Link atomLink = new Link(); atomLink.setHref(href); @@ -102,7 +102,7 @@ public class MessagesView extends AbstractRssFeedView { feed.getModules().add(atomLinkModule); } else { feed.setDescription("The latest messages at Juick"); - feed.setLink("http://juick.com/"); + feed.setLink("https://juick.com/"); feed.setTitle("Juick"); } @@ -114,7 +114,7 @@ public class MessagesView extends AbstractRssFeedView { private Item createRssItem(Message msg) { Item item = new Item(); - String messageUrl = String.format("http://juick.com/%s/%d", msg.getUser().getName(), msg.getMid()); + String messageUrl = String.format("https://juick.com/%s/%d", msg.getUser().getName(), msg.getMid()); String messageTitle = String.format("@%s: %s", msg.getUser().getName(), MessageUtils.getTagsString(msg)); boolean isCode = msg.getTags().stream().anyMatch(t -> t.getName().equals("code")); String messageDescription = isCode ? MessageUtils.formatMessageCode(StringUtils.defaultString(msg.getText())) -- cgit v1.2.3