diff options
author | default <nobody@localhost> | 2023-03-02 08:43:50 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-03-02 08:43:50 +0100 |
commit | 5e3c50d6e1ea2105add614fa2eb45612e577ddac (patch) | |
tree | 5444d35bde941cb7acd91c543a2eb4edfc0a2b0a /activitypub.c | |
parent | eb0c7eabbb88bed8e30fd7dcd337ce48a5f46a8f (diff) |
New inbox collection functions.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/activitypub.c b/activitypub.c index a259a25..663fa24 100644 --- a/activitypub.c +++ b/activitypub.c @@ -117,22 +117,8 @@ int actor_request(snac *snac, char *actor, d_char **data) } } -#if 0 - if (valid_status(status) && data && *data) { - xs *fn = xs_fmt("%s/inboxes.lst", srv_basedir); - FILE *f; - - if ((f = fopen(fn, "a")) != NULL) { - char *v; - if (!xs_is_null(v = xs_dict_get(*data, "endpoints")) && - !xs_is_null(v = xs_dict_get(v, "sharedInbox"))) { - fprintf(f, "%s\n", v); - } - - fclose(f); - } - } -#endif + if (valid_status(status) && data && *data) + inbox_add_by_actor(*data); return status; } |