From b00b43918f513627aa6692337693315c3b0489eb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 6 Sep 2021 11:22:45 +0300 Subject: ActivityPub: include user name and message id in the Announce id --- src/main/java/com/juick/ActivityPubManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java index 33404596..3b90530c 100644 --- a/src/main/java/com/juick/ActivityPubManager.java +++ b/src/main/java/com/juick/ActivityPubManager.java @@ -404,7 +404,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene private void processLike(User user, Message message) { Note note = makeNote(message); Announce announce = new Announce(); - announce.setId(personUri(user) + "#announce"); + announce.setId(note.getId() + "#announce-" + user.getName()); announce.setActor(personUri(user)); announce.setTo(Collections.singletonList(Context.ACTIVITYSTREAMS_PUBLIC)); announce.setObject(note); -- cgit v1.2.3