From c89c69205a72d3324489f0d527276d9bcb99122a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 29 Nov 2018 13:22:14 +0300 Subject: ActivityPub likes fix --- src/main/java/com/juick/server/ActivityPubManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/server') diff --git a/src/main/java/com/juick/server/ActivityPubManager.java b/src/main/java/com/juick/server/ActivityPubManager.java index 4bd51ff4..de24985c 100644 --- a/src/main/java/com/juick/server/ActivityPubManager.java +++ b/src/main/java/com/juick/server/ActivityPubManager.java @@ -140,7 +140,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene logger.info("Announce: {} -> {}", event.getActorUri(), event.getMessageUri()); UriComponents uriComponents = UriComponentsBuilder.fromUriString(event.getMessageUri()).build(); List segments = uriComponents.getPathSegments(); - if (segments.get(0).equals("m")) { + if (segments.get(0).equals("n")) { String[] ids = segments.get(1).split("-", 2); if (ids.length == 1) { // only messages -- cgit v1.2.3