From 2f1b853bc35f14ac61038b556d21e1d0190fee8a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 4 Sep 2018 12:28:21 +0300 Subject: fix outbox url --- juick-server/src/main/java/com/juick/server/api/activity/Info.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick/server') 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()); -- cgit v1.2.3