diff options
author | default <nobody@localhost> | 2023-09-02 08:41:29 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-09-02 08:41:29 +0200 |
commit | 073a2d962ad1acdfc2b6f179fc2fecdf92b9e9e8 (patch) | |
tree | f78e0a401756fd79e255e1325251ba7adb2ef5d6 /data.c | |
parent | 4e87a1106a589e2edcaabbdc8a834e47a813414e (diff) |
Discard output messages to blocked instances.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); + } } |