From e0e9ad7ee705a0b145ec97e85d10492f5af36134 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 6 Dec 2018 03:51:11 +0300 Subject: Tabs with active tab --- src/main/java/com/juick/server/www/controllers/NewMessage.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/juick/server/www') 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"; -- cgit v1.2.3