diff options
author | 2019-06-19 19:14:27 +0300 | |
---|---|---|
committer | 2019-06-19 19:14:27 +0300 | |
commit | f5136502fd12ec88af216001774d6128d8e6cdaf (patch) | |
tree | 9152895316155aca730f40ae7dfaabdf1241b91d /src/main/java/com/juick/server/api/Users.java | |
parent | 993b4665b11e04ee1b67e16f14292491fbb380bb (diff) |
API: add tag stats to /me endpoint
Diffstat (limited to 'src/main/java/com/juick/server/api/Users.java')
-rw-r--r-- | src/main/java/com/juick/server/api/Users.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/Users.java b/src/main/java/com/juick/server/api/Users.java index 1a046ad8..0db710c9 100644 --- a/src/main/java/com/juick/server/api/Users.java +++ b/src/main/java/com/juick/server/api/Users.java @@ -55,6 +55,8 @@ public class Users { @Inject private EmailService emailService; @Inject + private TagService tagService; + @Inject private WebApp webApp; @Inject private ImagesService imagesService; @@ -101,6 +103,7 @@ public class Users { me.setRead(userService.getUserFriends(visitor.getUid())); me.setReaders(userService.getUserReaders(visitor.getUid())); me.setAvatar(webApp.getAvatarUrl(visitor)); + me.getTagStats().addAll(tagService.getUserTagStats(me.getUid())); return (SecureUser)userService.getUserInfo(me); } @PostMapping("/api/me/upload") |