aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-08 17:04:45 +0300
committerGravatar Vitaly Takmazov2018-10-08 17:04:45 +0300
commitfe9796e40df7492a2090ab788cd68eef7302b039 (patch)
tree9878c2c1be9f6395bf57517de27d5b95dc313c62 /juick-server/src/main/java/com/juick/server
parent3e2d3e20cb6e2cf03953b4fa2040ee102b29587f (diff)
ActivityPub: do not forward PMs to followers
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r--juick-server/src/main/java/com/juick/server/ActivityPubManager.java3
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);