From 073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 2 Sep 2023 08:41:29 +0200 Subject: Discard output messages to blocked instances. --- activitypub.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index 90ad874..9427bf5 100644 --- a/activitypub.c +++ b/activitypub.c @@ -1875,6 +1875,11 @@ void process_queue_item(xs_dict *q_item) return; } + if (is_instance_blocked(inbox)) { + srv_debug(0, xs_fmt("discarded output message to blocked instance %s", inbox)); + return; + } + /* deliver */ status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8); -- cgit v1.2.3