aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/activity
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/server/api/activity')
-rw-r--r--src/main/java/com/juick/server/api/activity/Profile.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/com/juick/server/api/activity/Profile.java b/src/main/java/com/juick/server/api/activity/Profile.java
index 979f62658..d8a8fd907 100644
--- a/src/main/java/com/juick/server/api/activity/Profile.java
+++ b/src/main/java/com/juick/server/api/activity/Profile.java
@@ -78,8 +78,6 @@ public class Profile {
private String domain;
@Value("${ap_base_uri:http://localhost:8080/}")
private String baseUri;
- @Value("${img_url:http://localhost:8080/i/}")
- private String baseImagesUri;
@Inject
private ObjectMapper jsonMapper;
@Inject
@@ -103,10 +101,8 @@ public class Profile {
person.setOutbox(activityPubManager.outboxUri(user));
person.setFollowers(activityPubManager.followersUri(user));
person.setFollowing(activityPubManager.followingUri(user));
- UriComponentsBuilder image = UriComponentsBuilder.fromUriString(baseImagesUri);
- image.path(webApp.getAvatarWebPath(user));
Image avatar = new Image();
- avatar.setUrl(image.toUriString());
+ avatar.setUrl(webApp.getAvatarUrl(user));
avatar.setMediaType("image/png");
person.setIcon(avatar);
return (Person) Context.build(person);