commit 21e562cfbd6d40af05c6b4e5e8521a9553670a71 parent cef1b928c72d0cf0c929186816a00528a4adf15b Author: default <nobody@localhost> Date: Wed, 8 Mar 2023 10:14:40 +0100 Inbox collection can be disabled from the config file. Diffstat:
M | activitypub.c | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/activitypub.c b/activitypub.c @@ -118,8 +118,13 @@ int actor_request(snac *snac, char *actor, d_char **data) } } - if (valid_status(status) && data && *data) - inbox_add_by_actor(*data); + /* collect the (presumed) shared inbox in this actor */ + if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) { + if (valid_status(status) && data && *data) + inbox_add_by_actor(*data); + } + else + srv_log(xs_fmt("NOT collected")); return status; }