From b5786d7bddb4626ea6cc2895250cc5680cd9a2cb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 19 Sep 2018 21:19:32 +0300 Subject: ActivityStreams: Person url is String --- .../src/main/java/com/juick/server/api/activity/Profile.java | 1 + .../src/main/java/com/juick/server/api/activity/model/Person.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'juick-server/src') 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 a06987da..7c86b69e 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 @@ -46,6 +46,7 @@ public class Profile { Person person = new Person(); uri.replacePath(String.format("/u/%s", userName)); person.setId(uri.toUriString()); + person.setUrl(uri.toUriString()); person.setName(userName); Key publicKey = new Key(); publicKey.setId(person.getId() + "#main-key"); diff --git a/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java b/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java index 97fa5ae8..b7bc6547 100644 --- a/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java +++ b/juick-server/src/main/java/com/juick/server/api/activity/model/Person.java @@ -8,7 +8,7 @@ public class Person extends ActivityObject { private String outbox; private String following; private String followers; - private Link url; + private String url; private Key publicKey; @Override @@ -64,11 +64,11 @@ public class Person extends ActivityObject { this.followers = followers; } - public Link getUrl() { + public String getUrl() { return url; } - public void setUrl(Link url) { + public void setUrl(String url) { this.url = url; } -- cgit v1.2.3