aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-12-06 03:51:11 +0300
committerGravatar Vitaly Takmazov2018-12-06 03:51:11 +0300
commite0e9ad7ee705a0b145ec97e85d10492f5af36134 (patch)
tree963686425d9091f361be7f47160056a40444afac /src/main/java/com/juick/server
parent2b0133c4ee9a5b9855c3a773b8082a3c52f44c25 (diff)
Tabs with active tab
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r--src/main/java/com/juick/server/www/controllers/NewMessage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/www/controllers/NewMessage.java b/src/main/java/com/juick/server/www/controllers/NewMessage.java
index 1d3d2f5e..dfe629b5 100644
--- a/src/main/java/com/juick/server/www/controllers/NewMessage.java
+++ b/src/main/java/com/juick/server/www/controllers/NewMessage.java
@@ -56,6 +56,7 @@ public class NewMessage {
}
model.addAttribute("body", body);
model.addAttribute("visitor", visitor);
+ model.addAttribute("user", visitor);
model.addAttribute("tags", tagService.getUserTagStats(visitor.getUid()).stream()
.sorted((e1, e2) -> Integer.compare(e2.getUsageCount(), e1.getUsageCount())).map(t -> t.getTag().getName()).collect(Collectors.toList()));
return "views/post";