From e97801561c497021a03317090b82d3c2568b1da7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 12 Sep 2018 11:03:10 +0300 Subject: add Description meta to discover and blog pages --- .../src/main/java/com/juick/server/www/controllers/MessagesWWW.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick/server') diff --git a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java index 7388060e..5083fd5a 100644 --- a/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java +++ b/juick-server/src/main/java/com/juick/server/www/controllers/MessagesWWW.java @@ -140,7 +140,8 @@ public class MessagesWWW { throw new HttpNotFoundException(); } - String head = StringUtils.EMPTY; + String head = "\n";; + if (paramBefore > 0 || paramShow != null) { head = ""; } @@ -253,6 +254,7 @@ public class MessagesWWW { String head = ""; + head += "\n"; if (paramTag != null && tagService.getTagNoIndex(paramTag.TID)) { head += ""; } else if (before > 0 || paramShow != null) { -- cgit v1.2.3