aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/PageTemplates.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-11-16 12:10:32 +0300
committerGravatar Vitaly Takmazov2016-11-16 16:21:43 +0300
commitb11a395c46aa92179a4a6019d2ebef15877b3946 (patch)
tree7ab510a4d8a134c17e80795b76b7e153e74b4536 /juick-www/src/main/java/com/juick/www/PageTemplates.java
parent96dc5157a2a0979dbe2511366cb3bec6d16c4e7e (diff)
formatMessage moved to core, remove copy-paste from juick-rss
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/PageTemplates.java')
-rw-r--r--juick-www/src/main/java/com/juick/www/PageTemplates.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-www/src/main/java/com/juick/www/PageTemplates.java b/juick-www/src/main/java/com/juick/www/PageTemplates.java
index 4f7e17b7..f0974e69 100644
--- a/juick-www/src/main/java/com/juick/www/PageTemplates.java
+++ b/juick-www/src/main/java/com/juick/www/PageTemplates.java
@@ -22,6 +22,7 @@ import com.juick.Tag;
import com.juick.server.MessagesQueries;
import com.juick.server.TagQueries;
import com.juick.server.UserQueries;
+import com.juick.util.MessageUtils;
import org.apache.commons.lang3.StringEscapeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -315,9 +316,9 @@ public class PageTemplates {
String txt;
if (msg.getTags().stream().anyMatch(t -> t.getName().equals("code"))) {
- txt = Utils.formatMessageCode(msg.getText());
+ txt = MessageUtils.formatMessageCode(msg.getText());
} else {
- txt = Utils.formatMessage(msg.getText());
+ txt = MessageUtils.formatMessage(msg.getText());
}
out.println("<article data-mid=\"" + msg.getMid() + "\">");