diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/ActivityPubManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java index 906163384..0e062e8f2 100644 --- a/src/main/java/com/juick/ActivityPubManager.java +++ b/src/main/java/com/juick/ActivityPubManager.java @@ -254,7 +254,8 @@ public class ActivityPubManager implements ActivityListener, NotificationListene } subscribers.addAll(note.getCc()); subscribers.forEach(acct -> { - if (!acct.equals(profileUriBuilder.followersUri(user))) { + if (!acct.equals(profileUriBuilder.followersUri(user)) + && !acct.equals(me.getId())) { var context = activityPubService.get(URI.create(acct)); context.ifPresentOrElse((follower) -> { if (follower instanceof Actor to) { @@ -398,7 +399,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene } } public Message findMessage(String statusId) throws HttpNotFoundException { - String[]ids = statusId.split("-", 2); + String[] ids = statusId.split("-", 2); try { if (ids.length == 2) { return findMessage(Integer.parseInt(ids[0]), Integer.parseInt(ids[1])); |