aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-09-06 15:25:07 +0300
committerGravatar Vitaly Takmazov2021-09-06 15:25:07 +0300
commit9429a966eb484c0adc7f2e815016a3d82bfcb09f (patch)
treeb88c7c7f2f2728bb4707201b1e07f96aa4913342 /src/main/java
parentb00b43918f513627aa6692337693315c3b0489eb (diff)
HTTPS links in RSS
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/www/rss/MessagesView.java8
1 files changed, 4 insertions, 4 deletions
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()))