diff options
author | Vitaly Takmazov | 2018-10-08 17:04:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-08 17:04:45 +0300 |
commit | fe9796e40df7492a2090ab788cd68eef7302b039 (patch) | |
tree | 9878c2c1be9f6395bf57517de27d5b95dc313c62 /juick-server/src/main | |
parent | 3e2d3e20cb6e2cf03953b4fa2040ee102b29587f (diff) |
ActivityPub: do not forward PMs to followers
Diffstat (limited to 'juick-server/src/main')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); |