aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-19 21:22:04 +0300
committerGravatar Vitaly Takmazov2018-09-19 21:22:04 +0300
commitb730ab2062091a9e1f0e1d8a5473a764800c1df5 (patch)
tree9be2bf3fd54daa8d44e451630cee027e51bbd950 /juick-server
parentb5786d7bddb4626ea6cc2895250cc5680cd9a2cb (diff)
ActivityStreams: fix followers and following person urls
Diffstat (limited to 'juick-server')
-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;