aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api/activity
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/activity')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/Profile.java8
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 7c86b69e..4f81c4fb 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;