aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-29 13:22:14 +0300
committerGravatar Vitaly Takmazov2018-11-29 13:22:14 +0300
commitc89c69205a72d3324489f0d527276d9bcb99122a (patch)
tree13db7d4a7fac970e1b2e2c6d050ba0fb880e2c26 /src/main
parent9fcdf4102c9887266e4504d469ad7174cf19dae3 (diff)
ActivityPub likes fix
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/server/ActivityPubManager.java2
1 files changed, 1 insertions, 1 deletions
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<String> 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