diff options
author | Vitaly Takmazov | 2022-12-22 23:50:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-23 00:22:40 +0300 |
commit | a57278568eb10b843f76ceaa34f0b2ed36acbbb2 (patch) | |
tree | 4aab7e961c518158e0f6d1f0598ba924b4930b06 /src/main/java/com/juick/www/api/activity | |
parent | 3c5cfe677e013e0bcf10d168c08ac37a93482583 (diff) |
Show external followers in stats
Diffstat (limited to 'src/main/java/com/juick/www/api/activity')
-rw-r--r-- | src/main/java/com/juick/www/api/activity/Profile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/activity/Profile.java b/src/main/java/com/juick/www/api/activity/Profile.java index 5deba2cf..c87d6118 100644 --- a/src/main/java/com/juick/www/api/activity/Profile.java +++ b/src/main/java/com/juick/www/api/activity/Profile.java @@ -174,7 +174,7 @@ public class Profile { UriComponentsBuilder uriComponentsBuilder = UriComponentsBuilder.fromUriString(baseUri); OrderedCollection followers = new OrderedCollection(); followers.setId(ServletUriComponentsBuilder.fromCurrentRequestUri().toUriString()); - followers.setTotalItems(userService.getStatsMyReaders(user.getUid())); + followers.setTotalItems(userService.getUserReaders(user.getUid()).size()); followers.setFirst(uriComponentsBuilder.path(String.format("/u/%s/followers", userName)).toUriString()); return (OrderedCollection) Context.build(followers); } |