From ef5d9183c318882ab9209e25568d88f29d7111f4 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 24 Aug 2017 12:04:30 +0000
Subject: www: description meta for Yandexbot
---
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')
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 0d7538fb..5a1bac97 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
@@ -109,11 +109,13 @@ 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";
+ String cardDescription = StringEscapeUtils.escapeHtml4(PlainTextFormatter.formatTwitterCard(msg));
headers += "\n" +
"\n" +
"\n" +
"\n" +
- "\n" +
+ "\n" +
+ "\n" +
"";
String twitterName = crosspostService.getTwitterName(msg.getUser().getUid());
if (StringUtils.isNotEmpty(twitterName)) {
--
cgit v1.2.3