aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/java/com/juick/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-05-24 13:32:26 +0300
committerGravatar Vitaly Takmazov2017-05-24 13:32:26 +0300
commit2def65985a87d591e5123555bd8a944826beedce (patch)
treec8ca0677c299d8432a23aefea6b9831057ab4198 /juick-www/src/main/java/com/juick/www/controllers
parentbd0d43e74be23321ef2991d8a9bc27ad47e1e02a (diff)
juick-www: fix tags
Diffstat (limited to 'juick-www/src/main/java/com/juick/www/controllers')
-rw-r--r--juick-www/src/main/java/com/juick/www/controllers/User.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/controllers/User.java b/juick-www/src/main/java/com/juick/www/controllers/User.java
index 5435e23d..461a2403 100644
--- a/juick-www/src/main/java/com/juick/www/controllers/User.java
+++ b/juick-www/src/main/java/com/juick/www/controllers/User.java
@@ -209,7 +209,7 @@ public class User {
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("tags", tagService.getUserTagStats(user.getUid()).stream()
- .sorted((e1, e2) -> Integer.compare(e2.getUsageCount(), e1.getUsageCount())).collect(Collectors.toList()));
+ .sorted((e1, e2) -> Integer.compare(e2.getUsageCount(), e1.getUsageCount())).map(t -> t.getTag().getName()).collect(Collectors.toList()));
return "views/blog_tags";
}