aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-12 11:07:24 +0300
committerGravatar Vitaly Takmazov2018-04-12 11:07:24 +0300
commit2048543036133fd2a563664fd6d6346e4e49ebe5 (patch)
treecb5884895a20f133f5c63ea3c3467583ef2a8ef1 /juick-www/src/main/java/com/juick/www
parent97ffb90f765078aca3e4d6d173a6c93182d9165c (diff)
www: unread discussions badge
Diffstat (limited to 'juick-www/src/main/java/com/juick/www')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/MessagesWWW.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/MessagesWWW.java b/juick-www/src/main/java/com/juick/www/controllers/MessagesWWW.java
index 5bbea56b..e840b767 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/MessagesWWW.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/MessagesWWW.java
@@ -79,6 +79,7 @@ public class MessagesWWW {
model.addAttribute("iread", userService.getUserReadLeastPopular(user.getUid(), 8));
model.addAttribute("tagStats", tagService.getUserTagStats(user.getUid())
.stream().sorted((e1, e2) -> Integer.compare(e2.getUsageCount(), e1.getUsageCount())).limit(20).map(t -> t.getTag().getName()).collect(Collectors.toList()));
+ model.addAttribute("unread", messagesService.getUnread(visitor));
}
@GetMapping("/")