From fe9796e40df7492a2090ab788cd68eef7302b039 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 8 Oct 2018 17:04:45 +0300 Subject: ActivityPub: do not forward PMs to followers --- juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'juick-server/src/main/java/com') diff --git a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java index 10ca9951..5aecdd33 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -117,6 +117,9 @@ public class ActivityPubManager implements ActivityListener, NotificationListene @Override public void processMessageEvent(MessageEvent messageEvent) { Message msg = messageEvent.getMessage(); + if (MessageUtils.isPM(msg)) { + return; + } User user = msg.getUser(); String userUri = personUri(user); Note note = makeNote(msg); -- cgit v1.2.3