diff options
author | Vitaly Takmazov | 2019-07-26 13:35:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-07-26 13:35:58 +0300 |
commit | f8ad63983ee9769009c839cec8f16910639d6dab (patch) | |
tree | 9ab3ac54a29e56931168faecdf21128d255b79d4 /src/main/java/com/juick/server/api | |
parent | f1bf747c4595999943ed3f067947491754930b9f (diff) |
set correct uri of external user in fetchUser response
Diffstat (limited to 'src/main/java/com/juick/server/api')
-rw-r--r-- | src/main/java/com/juick/server/api/activity/Profile.java | 2 |
1 files changed, 1 insertions, 1 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 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()); |