diff options
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 7c302bb..bdee395 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -190,12 +190,14 @@ int activitypub_get_handler(d_char *req, char *q_path, | |||
| 190 | else | 190 | else |
| 191 | if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) { | 191 | if (strcmp(p_path, "followers") == 0 || strcmp(p_path, "following") == 0) { |
| 192 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); | 192 | xs *id = xs_fmt("%s/%s", snac.actor, p_path); |
| 193 | xs *ol = xs_list_new(); | ||
| 194 | xs *nz = xs_number_new(0); | ||
| 193 | 195 | ||
| 194 | msg = xs_dict_append(msg, "@context", "https:/" "/www.w3.org/ns/activitystreams"); | 196 | msg = xs_dict_append(msg, "@context", "https:/" "/www.w3.org/ns/activitystreams"); |
| 195 | msg = xs_dict_append(msg, "attributedTo", snac.actor); | 197 | msg = xs_dict_append(msg, "attributedTo", snac.actor); |
| 196 | msg = xs_dict_append(msg, "id", id); | 198 | msg = xs_dict_append(msg, "id", id); |
| 197 | msg = xs_dict_append(msg, "orderedItems", xs_list_new()); | 199 | msg = xs_dict_append(msg, "orderedItems", ol); |
| 198 | msg = xs_dict_append(msg, "totalItems", xs_number_new(0)); | 200 | msg = xs_dict_append(msg, "totalItems", nz); |
| 199 | msg = xs_dict_append(msg, "type", "OrderedCollection"); | 201 | msg = xs_dict_append(msg, "type", "OrderedCollection"); |
| 200 | } | 202 | } |
| 201 | else | 203 | else |