From d17e5714c9b421fce507d310fd913ce3160a1764 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 22 Jan 2023 00:52:14 +0300 Subject: Update links to external users with web urls instead of json-ld uris --- src/main/java/com/juick/ActivityPubManager.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com') diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java index 5f42028f..90616338 100644 --- a/src/main/java/com/juick/ActivityPubManager.java +++ b/src/main/java/com/juick/ActivityPubManager.java @@ -386,6 +386,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene if (context.isPresent() && context.get() instanceof Actor actor) { User user = new User(); user.setUri(URI.create(actor.getId())); + user.setUrl(actor.getUrl()); user.setName(actor.getPreferredUsername()); if (actor.getIcon() != null) { user.setAvatar(actor.getIcon().getUrl()); -- cgit v1.2.3