From f8ad63983ee9769009c839cec8f16910639d6dab Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 26 Jul 2019 13:35:58 +0300 Subject: set correct uri of external user in fetchUser response --- src/main/java/com/juick/server/api/activity/Profile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 c4b7d58a..0f258770 100644 --- a/src/main/java/com/juick/server/api/activity/Profile.java +++ b/src/main/java/com/juick/server/api/activity/Profile.java @@ -392,7 +392,7 @@ public class Profile { public User fetchUser(@RequestParam URI uri) { Person person = (Person) signatureManager.getContext(uri).orElseThrow(HttpBadRequestException::new); User user = new User(); - user.setUri(URI.create(person.getUrl())); + user.setUri(URI.create(person.getId())); user.setName(person.getPreferredUsername()); if (person.getIcon() != null) { user.setAvatar(person.getIcon().getUrl()); -- cgit v1.2.3