aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-26 13:35:58 +0300
committerGravatar Vitaly Takmazov2019-07-26 13:35:58 +0300
commitf8ad63983ee9769009c839cec8f16910639d6dab (patch)
tree9ab3ac54a29e56931168faecdf21128d255b79d4 /src/main
parentf1bf747c4595999943ed3f067947491754930b9f (diff)
set correct uri of external user in fetchUser response
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/server/api/activity/Profile.java2
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());