aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-04 12:28:21 +0300
committerGravatar Vitaly Takmazov2018-09-04 12:28:21 +0300
commit2f1b853bc35f14ac61038b556d21e1d0190fee8a (patch)
tree7e51dd5f746d8b165032585d7276e57f2050d506 /juick-server/src/main
parent5c491c20f8201b1a90335899aa0f2eb72ed0daff (diff)
fix outbox url
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/activity/Info.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/activity/Info.java b/juick-server/src/main/java/com/juick/server/api/activity/Info.java
index 4cff15c1..f779049a 100644
--- a/juick-server/src/main/java/com/juick/server/api/activity/Info.java
+++ b/juick-server/src/main/java/com/juick/server/api/activity/Info.java
@@ -33,7 +33,8 @@ public class Info {
builder.path(String.format("/u/%s", userName));
person.setId(builder.toUriString());
person.setName(userName);
- person.setOutbox(builder.path(String.format("/u/%s/blog", userName)).toUriString());
+ UriComponentsBuilder outboxBuilder = UriComponentsBuilder.fromUriString(baseUri);
+ person.setOutbox(outboxBuilder.path(String.format("/u/%s/blog", userName)).toUriString());
UriComponentsBuilder imgBuilder = UriComponentsBuilder.fromUriString(baseImagesUri);
imgBuilder.path(String.format("/a/%d.png", user.getUid()));
person.setIcon(imgBuilder.toUriString());