diff options
author | default <nobody@localhost> | 2024-01-24 18:50:57 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-01-24 18:50:57 +0100 |
commit | 24cd0c11b9457f3434bde83ea3c7ba51642ff5c7 (patch) | |
tree | 44e7c689bb511f54672b06ba8e38b1c1aeac8550 /activitypub.c | |
parent | 9a5e0a21cc52ec3a9a7c86509c83deb073115bd9 (diff) |
Don't send anything to the collected inboxes if collection is disabled.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/activitypub.c b/activitypub.c index 03c2ddf..91195cd 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1991,13 +1991,15 @@ void process_user_queue_item(snac *snac, xs_dict *q_item) /* if it's public, send to the collected inboxes */ if (is_msg_public(msg)) { - xs *shibx = inbox_list(); - xs_str *inbox; - - p = shibx; - while (xs_list_iter(&p, &inbox)) { - if (xs_set_add(&inboxes, inbox) == 1) - enqueue_output(snac, msg, inbox, 0, 0); + if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) { + xs *shibx = inbox_list(); + xs_str *inbox; + + p = shibx; + while (xs_list_iter(&p, &inbox)) { + if (xs_set_add(&inboxes, inbox) == 1) + enqueue_output(snac, msg, inbox, 0, 0); + } } } |