mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Don't notify 'Block' activities if the 'disable_block_notifications' server setting is true.
This commit is contained in:
parent
6a7881ec85
commit
a1231c1cd2
1 changed files with 3 additions and 2 deletions
|
@ -2190,12 +2190,13 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
|
|||
}
|
||||
else
|
||||
if (strcmp(type, "Block") == 0) { /** **/
|
||||
snac_log(snac, xs_fmt("'Block' received from %s", actor));
|
||||
snac_debug(snac, 1, xs_fmt("'Block' received from %s", actor));
|
||||
|
||||
/* should we MUTE the actor back? */
|
||||
/* mute(snac, actor); */
|
||||
|
||||
do_notify = 1;
|
||||
if (!xs_is_true(xs_dict_get(srv_config, "disable_block_notifications")))
|
||||
do_notify = 1;
|
||||
}
|
||||
else
|
||||
if (strcmp(type, "Move") == 0) { /** **/
|
||||
|
|
Loading…
Reference in a new issue