diff options
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/activity/Profile.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java index 7c86b69eb..4f81c4fbd 100644 --- a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java +++ b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java @@ -160,9 +160,7 @@ public class Profile { result.setOrderedItems(followersPage.map(a -> { Person follower = new Person(); follower.setName(a.getName()); - Link url = new Link(); - url.setHref(uriComponentsBuilder.replacePath(String.format("/u/%s", a.getName())).toUriString()); - follower.setUrl(url); + follower.setUrl(uriComponentsBuilder.replacePath(String.format("/u/%s", a.getName())).toUriString()); return follower; }).collect(Collectors.toList())); boolean hasNext = followers.size() <= 20 * page; @@ -203,9 +201,7 @@ public class Profile { result.setOrderedItems(followingPage.map(a -> { Person follower = new Person(); follower.setName(a.getName()); - Link url = new Link(); - url.setHref(uriComponentsBuilder.replacePath(String.format("/u/%s", a.getName())).toUriString()); - follower.setUrl(url); + follower.setUrl(uriComponentsBuilder.replacePath(String.format("/u/%s", a.getName())).toUriString()); return follower; }).collect(Collectors.toList())); boolean hasNext = following.size() <= 20 * page; |