diff options
author | default <nobody@localhost> | 2023-05-29 08:00:43 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-29 08:00:43 +0200 |
commit | bf965122967f38fb93fdfa1067543c968d847a2b (patch) | |
tree | 6b1db386b187acf3da1a2d81cd202311b399f900 /activitypub.c | |
parent | 50624547e4b3eb05b3ee0a185ef975fce3c8e19a (diff) |
Added the 'replies' dict to each question.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activitypub.c b/activitypub.c index bbf7a03..59b82c1 100644 --- a/activitypub.c +++ b/activitypub.c @@ -945,11 +945,13 @@ xs_dict *msg_question(snac *user, const char *content, const xs_list *opts, int xs *o = xs_list_new(); xs_list *p = (xs_list *)opts; xs_str *v; + xs *replies = xs_json_loads("{\"type\":\"Collection\",\"totalItems\":0}"); while (xs_list_iter(&p, &v)) { xs *d = xs_dict_new(); - d = xs_dict_append(d, "name", v); + d = xs_dict_append(d, "name", v); + d = xs_dict_append(d, "replies", replies); o = xs_list_append(o, d); } |