diff options
author | 2018-10-06 21:26:54 +0300 | |
---|---|---|
committer | 2018-10-06 21:26:54 +0300 | |
commit | 312b2408d72d11caf4d88cfbf07157ead220347f (patch) | |
tree | b3c66d350ed6513526f37aa5a4d1df9600191f98 /juick-server/src/main/java/com/juick/server | |
parent | 8706a64c522ecfcd54577b4aac575a5ca4dba124 (diff) |
Replies formatting for anonymous users
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java index 2d6d06bc..3d296d8f 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -148,6 +148,9 @@ public class ActivityPubManager implements ActivityListener, NotificationListene } public String personUri(User user) { + if (user.getUri().toString().length() > 0) { + return user.getUri().toASCIIString(); + } UriComponentsBuilder uri = UriComponentsBuilder.fromUriString(baseUri); return uri.replacePath(String.format("/u/%s", user.getName())).toUriString(); } |