diff options
| author | 2025-01-19 18:39:29 +0100 | |
|---|---|---|
| committer | 2025-01-19 18:39:29 +0100 | |
| commit | 5b7279b6f7b0bff59aba029b12b05c989a3b0059 (patch) | |
| tree | fb249d5941809543e776eb8884b65b2125deb472 /activitypub.c | |
| parent | changed note* commands checking. (diff) | |
| download | snac2-5b7279b6f7b0bff59aba029b12b05c989a3b0059.tar.gz snac2-5b7279b6f7b0bff59aba029b12b05c989a3b0059.tar.xz snac2-5b7279b6f7b0bff59aba029b12b05c989a3b0059.zip | |
Only relay public posts.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 2 |
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) | |||
| 2539 | xs_set_free(&inboxes); | 2539 | xs_set_free(&inboxes); |
| 2540 | 2540 | ||
| 2541 | /* relay this note */ | 2541 | /* relay this note */ |
| 2542 | if (strcmp(user->uid, "relay") != 0) { /* avoid loops */ | 2542 | if (is_msg_public(msg) && strcmp(user->uid, "relay") != 0) { /* avoid loops */ |
| 2543 | snac relay; | 2543 | snac relay; |
| 2544 | if (user_open(&relay, "relay")) { | 2544 | if (user_open(&relay, "relay")) { |
| 2545 | /* a 'relay' user exists */ | 2545 | /* a 'relay' user exists */ |