diff options
author | Vitaly Takmazov | 2021-09-06 16:30:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-09-06 16:30:56 +0300 |
commit | bb1afa817b5547ba56c3b161f4b10bc4bc88aed8 (patch) | |
tree | 3f28e4aa82edf17fb86f37bd581416b71e4b9d93 /src/main/java | |
parent | 9429a966eb484c0adc7f2e815016a3d82bfcb09f (diff) |
HTTPS links in RSS replies
Diffstat (limited to 'src/main/java')
-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); |