aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-09-13 18:51:22 +0300
committerGravatar Vitaly Takmazov2016-09-13 18:51:22 +0300
commiteb18da1b50e36efa882943280d78c3eaab19de16 (patch)
tree3b097b168898068cba25ef861467724cab23852b /juick-www/src/main
parent1eabe2af0aa198e723b83a937783242571c8dc65 (diff)
fix code formatting
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/java/com/juick/www/PageTemplates.java2
1 files changed, 1 insertions, 1 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 ea201b85..11de6bcb 100644
--- a/juick-www/src/main/java/com/juick/www/PageTemplates.java
+++ b/juick-www/src/main/java/com/juick/www/PageTemplates.java
@@ -313,7 +313,7 @@ public class PageTemplates {
}
String txt;
- if (!msg.Tags.isEmpty() && msg.Tags.contains("code")) {
+ if (!msg.Tags.isEmpty() && msg.Tags.stream().filter(t -> t.getName().equals("code")).count() > 0) {
txt = Utils.formatMessageCode(msg.getText());
} else {
txt = Utils.formatMessage(msg.getText());