aboutsummaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-01-19 18:39:29 +0100
committerdefault <nobody@localhost>2025-01-19 18:39:29 +0100
commit5b7279b6f7b0bff59aba029b12b05c989a3b0059 (patch)
treefb249d5941809543e776eb8884b65b2125deb472 /activitypub.c
parentb3ca9a50e7fe365a7757d39b7a3c192827b0b680 (diff)
Only relay public posts.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c
index 18b3c86..73145d3 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -2539,7 +2539,7 @@ void process_user_queue_item(snac *user, xs_dict *q_item)
xs_set_free(&inboxes);
/* relay this note */
- if (strcmp(user->uid, "relay") != 0) { /* avoid loops */
+ if (is_msg_public(msg) && strcmp(user->uid, "relay") != 0) { /* avoid loops */
snac relay;
if (user_open(&relay, "relay")) {
/* a 'relay' user exists */