Don't notify 'Block' activities if the 'disable_block_notifications' server setting is true.

This commit is contained in:
default 2024-10-30 16:57:27 +01:00
parent 6a7881ec85
commit a1231c1cd2

View file

@ -2190,11 +2190,12 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
} }
else else
if (strcmp(type, "Block") == 0) { /** **/ 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? */ /* should we MUTE the actor back? */
/* mute(snac, actor); */ /* mute(snac, actor); */
if (!xs_is_true(xs_dict_get(srv_config, "disable_block_notifications")))
do_notify = 1; do_notify = 1;
} }
else else