aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-08-24 15:35:58 +0300
committerGravatar Vitaly Takmazov2017-08-24 15:35:58 +0300
commitc18878076df4efb9cc4e7d3276c32e1fd69e7476 (patch)
tree90a4bad33eb10f5216c1c4e127e141c8f088c582 /juick-www/src/main/java/com
parent3366736842134ef161a301479dab8968fe27ef48 (diff)
www: og:url should have schema
Diffstat (limited to 'juick-www/src/main/java/com')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/UserThread.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
index a93dc780..f1f275c6 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/UserThread.java
@@ -100,7 +100,7 @@ public class UserThread {
model.addAttribute("title", title);
model.addAttribute("visitor", visitor);
String headers = "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"@" + msg.getUser().getName() + "\" href=\"//rss.juick.com/" + msg.getUser().getName() + "/blog\"/>";
- String pageUrl = "//juick.com/" + msg.getUser().getName() + "/" + msg.getMid();
+ String pageUrl = "https://juick.com/" + msg.getUser().getName() + "/" + msg.getMid();
if (paramView != null) {
headers += "<link rel=\"canonical\" href=\"" + pageUrl + "\"/>";
}
@@ -109,7 +109,7 @@ public class UserThread {
}
String cardType = StringUtils.isNotEmpty(msg.getAttachmentType()) ? "summary_large_image" : "summary";
String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getPhotoURLs().getMedium()
- : "//i.juick.com/a/" + msg.getUser().getUid() + ".png";
+ : "https://i.juick.com/a/" + msg.getUser().getUid() + ".png";
model.addAttribute("ogtype", "article");
String cardDescription = StringEscapeUtils.escapeHtml4(PlainTextFormatter.formatTwitterCard(msg));
headers += "<meta name=\"twitter:card\" content=\"" + cardType + "\" />\n" +