commit a1231c1
default
·
2024-10-30 15:57:27 +0000 UTC
parent 6a7881e
Don't notify 'Block' activities if the 'disable_block_notifications' server setting is true.
1 files changed,
+3,
-2
+3,
-2
1@@ -2190,12 +2190,13 @@ int process_input_message(snac *snac, const xs_dict *msg, const xs_dict *req)
2 }
3 else
4 if (strcmp(type, "Block") == 0) { /** **/
5- snac_log(snac, xs_fmt("'Block' received from %s", actor));
6+ snac_debug(snac, 1, xs_fmt("'Block' received from %s", actor));
7
8 /* should we MUTE the actor back? */
9 /* mute(snac, actor); */
10
11- do_notify = 1;
12+ if (!xs_is_true(xs_dict_get(srv_config, "disable_block_notifications")))
13+ do_notify = 1;
14 }
15 else
16 if (strcmp(type, "Move") == 0) { /** **/