aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-19 21:19:32 +0300
committerGravatar Vitaly Takmazov2018-09-19 21:19:32 +0300
commitb5786d7bddb4626ea6cc2895250cc5680cd9a2cb (patch)
tree0900fdd7660203f11f77d753c56f8bea9b613737 /juick-server/src/main/java
parentfa025754c5475cc59bc1f2fd9b471d63b750a528 (diff)
ActivityStreams: Person url is String
Diffstat (limited to 'juick-server/src/main/java')
-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;
}