aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-09-04 12:13:21 +0300
committerGravatar Vitaly Takmazov2021-09-04 12:13:21 +0300
commitfb9dcc8efd8add175cd12563125d225ebb8ceeb9 (patch)
treeab9003aff4f776aaaf8069d44bc9d3b1b70fa2b6 /src
parent4b795886e1a1d846b02dd09a9fb9cbe12eb43284 (diff)
ActivityPub: update Announce id and log messages
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/ActivityPubManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java
index c6f2c3d8..33404596 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(note.getId() + "#top");
+ announce.setId(personUri(user) + "#announce");
announce.setActor(personUri(user));
announce.setTo(Collections.singletonList(Context.ACTIVITYSTREAMS_PUBLIC));
announce.setObject(note);
@@ -413,7 +413,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene
var follower = signatureManager.getContext(URI.create(acct));
follower.ifPresentOrElse((person) -> {
try {
- logger.info("Announcing top: {}", message.getMid());
+ logger.info("{} announcing {} to {}", user.getName(), message.getMid(), acct);
signatureManager.post(me, (Actor)person, announce);
} catch (IOException | NoSuchAlgorithmException e) {
logger.warn("activitypub exception", e);