aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-09-06 11:22:45 +0300
committerGravatar Vitaly Takmazov2021-09-06 11:22:45 +0300
commitb00b43918f513627aa6692337693315c3b0489eb (patch)
treed92b44b750fb339a1765445c5e29076788bf9b3e /src/main
parentfb9dcc8efd8add175cd12563125d225ebb8ceeb9 (diff)
ActivityPub: include user name and message id in the Announce id
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/ActivityPubManager.java2
1 files changed, 1 insertions, 1 deletions
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);