aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-10-30 16:57:27 +0100
committerdefault <nobody@localhost>2024-10-30 16:57:27 +0100
commita1231c1cd21f93fef6573d8906d852bf49165364 (patch)
tree4316802ae8c1fb91252baeb42449725575bf57d0
parent6a7881ec850f0f79eb7cd0f201375390eac627a6 (diff)
Don't notify 'Block' activities if the 'disable_block_notifications' server setting is true.
-rw-r--r--activitypub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index 5b9e2fe..96c3038 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -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) { /** **/