diff options
author | Vitaly Takmazov | 2017-08-23 18:48:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-08-23 18:48:47 +0300 |
commit | e0ff1c128782bb448018e2cedc45b4c9ceeee843 (patch) | |
tree | 16fb6dac452e057f2438734681ad84869fce46bb /juick-www/src/main | |
parent | ca2db58145c4663a22f44f5f98a67aa03fbe8d38 (diff) |
www: use https image url in twitter card
Diffstat (limited to 'juick-www/src/main')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/controllers/UserThread.java | 2 |
1 files changed, 1 insertions, 1 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 400f231a..0d7538fb 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 @@ -108,7 +108,7 @@ public class UserThread { headers += "<meta name=\"robots\" content=\"noindex\"/>"; } String cardType = StringUtils.isNotEmpty(msg.getAttachmentType()) ? "summary_large_image" : "summary"; - String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getAttachmentURL() : "//i.juick.com/a/" + msg.getUser().getUid() + ".png"; + String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getPhotoURLs().getMedium() : "//i.juick.com/a/" + msg.getUser().getUid() + ".png"; headers += "<meta name=\"twitter:card\" content=\"" + cardType + "\" />\n" + "<meta name=\"twitter:site\" content=\"@juick\" />\n" + "<meta property=\"og:url\" content=\"" + pageUrl + "\" />\n" + |