diff options
| author | 2023-03-08 10:14:40 +0100 | |
|---|---|---|
| committer | 2023-03-08 10:14:40 +0100 | |
| commit | 21e562cfbd6d40af05c6b4e5e8521a9553670a71 (patch) | |
| tree | bda83729cf0d998cebc9a425700bcc93260a8871 | |
| parent | Updated documentation. (diff) | |
| download | snac2-21e562cfbd6d40af05c6b4e5e8521a9553670a71.tar.gz snac2-21e562cfbd6d40af05c6b4e5e8521a9553670a71.tar.xz snac2-21e562cfbd6d40af05c6b4e5e8521a9553670a71.zip | |
Inbox collection can be disabled from the config file.
| -rw-r--r-- | activitypub.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 66ca900..6453c60 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -118,8 +118,13 @@ int actor_request(snac *snac, char *actor, d_char **data) | |||
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | if (valid_status(status) && data && *data) | 121 | /* collect the (presumed) shared inbox in this actor */ |
| 122 | inbox_add_by_actor(*data); | 122 | if (xs_type(xs_dict_get(srv_config, "disable_inbox_collection")) != XSTYPE_TRUE) { |
| 123 | if (valid_status(status) && data && *data) | ||
| 124 | inbox_add_by_actor(*data); | ||
| 125 | } | ||
| 126 | else | ||
| 127 | srv_log(xs_fmt("NOT collected")); | ||
| 123 | 128 | ||
| 124 | return status; | 129 | return status; |
| 125 | } | 130 | } |