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.java1
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/model/Person.java6
2 files changed, 4 insertions, 3 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 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;
}