summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-09-02 08:41:29 +0200
committerdefault <nobody@localhost>2023-09-02 08:41:29 +0200
commit073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8 (patch)
treef78e0a401756fd79e255e1325251ba7adb2ef5d6 /data.c
parent4e87a1106a589e2edcaabbdc8a834e47a813414e (diff)
Discard output messages to blocked instances.
Diffstat (limited to 'data.c')
-rw-r--r--data.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/data.c b/data.c
index fb6d81f..889d484 100644
--- a/data.c
+++ b/data.c
@@ -1759,8 +1759,11 @@ void inbox_add_by_actor(const xs_dict *actor)
char *v;
if (!xs_is_null(v = xs_dict_get(actor, "endpoints")) &&
- !xs_is_null(v = xs_dict_get(v, "sharedInbox")))
- inbox_add(v);
+ !xs_is_null(v = xs_dict_get(v, "sharedInbox"))) {
+ /* only collect this inbox if its instance is not blocked */
+ if (!is_instance_blocked(v))
+ inbox_add(v);
+ }
}