aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-29 13:19:32 +0300
committerGravatar Vitaly Takmazov2018-11-29 13:19:32 +0300
commit9fcdf4102c9887266e4504d469ad7174cf19dae3 (patch)
treed703403367511cc13362c5c0823e7e4df6505106 /src/main/java/com/juick
parentea950361486f1bd78da23b7163baae335ddca280 (diff)
ActivityPub logging
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/ActivityPubManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/ActivityPubManager.java b/src/main/java/com/juick/server/ActivityPubManager.java
index 9829760f..4bd51ff4 100644
--- a/src/main/java/com/juick/server/ActivityPubManager.java
+++ b/src/main/java/com/juick/server/ActivityPubManager.java
@@ -137,6 +137,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene
@Override
public void processAnnounceEvent(AnnounceEvent event) {
+ logger.info("Announce: {} -> {}", event.getActorUri(), event.getMessageUri());
UriComponents uriComponents = UriComponentsBuilder.fromUriString(event.getMessageUri()).build();
List<String> segments = uriComponents.getPathSegments();
if (segments.get(0).equals("m")) {
@@ -151,6 +152,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene
@Override
public void undoAnnounceEvent(UndoAnnounceEvent event) {
+ logger.info("Undo announce: {} -> {}", event.getActorUri(), event.getMessageUri());
UriComponents uriComponents = UriComponentsBuilder.fromUriString(event.getMessageUri()).build();
List<String> segments = uriComponents.getPathSegments();
if (segments.get(0).equals("m")) {