From c18878076df4efb9cc4e7d3276c32e1fd69e7476 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 24 Aug 2017 15:35:58 +0300
Subject: www: og:url should have schema
---
juick-www/src/main/java/com/juick/www/controllers/UserThread.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'juick-www/src/main/java/com/juick')
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 = "";
- String pageUrl = "//juick.com/" + msg.getUser().getName() + "/" + msg.getMid();
+ String pageUrl = "https://juick.com/" + msg.getUser().getName() + "/" + msg.getMid();
if (paramView != null) {
headers += "";
}
@@ -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 += "\n" +
--
cgit v1.2.3