diff options
author | 2018-12-12 14:07:44 +0300 | |
---|---|---|
committer | 2018-12-12 14:08:46 +0300 | |
commit | 5cf17016b213232dede31eac45c9d311e461672b (patch) | |
tree | e4bee7d98572cf6fffed6988306f096e2d3c6cf2 /src/main/java/com/juick/server/api/Users.java | |
parent | f8603ba2dcfc311e3ed9b6f7ade23db204f2d99a (diff) |
api: read and readers in /info 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 | 2 |
1 files changed, 2 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 f8fdba0c..0e0fee85 100644 --- a/src/main/java/com/juick/server/api/Users.java +++ b/src/main/java/com/juick/server/api/Users.java @@ -165,6 +165,8 @@ public class Users { public UserInfo getUserInfo(@PathVariable String uname) { User user = userService.getUserByName(uname); if (!user.isBanned()) { + user.setRead(doGetUserRead(uname)); + user.setReaders(doGetUserReaders(uname)); user.setAvatar(webApp.getAvatarUrl(user)); return userService.getUserInfo(user); } |