From 32181c51f9bb2c6b4a49f08f84c6b43069174ba2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 24 Aug 2017 15:24:13 +0300 Subject: www: og:type --- juick-www/src/main/java/com/juick/www/controllers/UserThread.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main/java/com/juick/www') 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 5a1bac97..a93dc780 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,9 @@ public class UserThread { headers += ""; } 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"; + String msgImage = StringUtils.isNotEmpty(msg.getAttachmentType()) ? msg.getPhotoURLs().getMedium() + : "//i.juick.com/a/" + msg.getUser().getUid() + ".png"; + model.addAttribute("ogtype", "article"); String cardDescription = StringEscapeUtils.escapeHtml4(PlainTextFormatter.formatTwitterCard(msg)); headers += "\n" + "\n" + -- cgit v1.2.3