summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-09-02 08:41:29 +0200
committerGravatar default2023-09-02 08:41:29 +0200
commit073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8 (patch)
treef78e0a401756fd79e255e1325251ba7adb2ef5d6 /activitypub.c
parentConsider error status 400 as fatal in output messages. (diff)
downloadsnac2-073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8.tar.gz
snac2-073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8.tar.xz
snac2-073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8.zip
Discard output messages to blocked instances.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c5
1 files changed, 5 insertions, 0 deletions
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)
1875 return; 1875 return;
1876 } 1876 }
1877 1877
1878 if (is_instance_blocked(inbox)) {
1879 srv_debug(0, xs_fmt("discarded output message to blocked instance %s", inbox));
1880 return;
1881 }
1882
1878 /* deliver */ 1883 /* deliver */
1879 status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8); 1884 status = send_to_inbox_raw(keyid, seckey, inbox, msg, &payload, &p_size, retries == 0 ? 3 : 8);
1880 1885