diff options
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) | |||
| 117 | } | 117 | } |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | #if 0 | 120 | if (valid_status(status) && data && *data) |
| 121 | if (valid_status(status) && data && *data) { | 121 | inbox_add_by_actor(*data); |
| 122 | xs *fn = xs_fmt("%s/inboxes.lst", srv_basedir); | ||
| 123 | FILE *f; | ||
| 124 | |||
| 125 | if ((f = fopen(fn, "a")) != NULL) { | ||
| 126 | char *v; | ||
| 127 | if (!xs_is_null(v = xs_dict_get(*data, "endpoints")) && | ||
| 128 | !xs_is_null(v = xs_dict_get(v, "sharedInbox"))) { | ||
| 129 | fprintf(f, "%s\n", v); | ||
| 130 | } | ||
| 131 | |||
| 132 | fclose(f); | ||
| 133 | } | ||
| 134 | } | ||
| 135 | #endif | ||
| 136 | 122 | ||
| 137 | return status; | 123 | return status; |
| 138 | } | 124 | } |