mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Don't send anything to the collected inboxes if collection is disabled.
This commit is contained in:
parent
9a5e0a21cc
commit
24cd0c11b9
1 changed files with 8 additions and 6 deletions
|
@ -1991,6 +1991,7 @@ 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)) {
|
||||
if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) {
|
||||
xs *shibx = inbox_list();
|
||||
xs_str *inbox;
|
||||
|
||||
|
@ -2000,6 +2001,7 @@ void process_user_queue_item(snac *snac, xs_dict *q_item)
|
|||
enqueue_output(snac, msg, inbox, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
xs_set_free(&inboxes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue