mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Inbox collection can be disabled from the config file.
This commit is contained in:
parent
cef1b928c7
commit
21e562cfbd
1 changed files with 7 additions and 2 deletions
|
@ -118,8 +118,13 @@ int actor_request(snac *snac, char *actor, d_char **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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue