diff options
author | default <nobody@localhost> | 2023-08-13 12:09:35 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-13 12:09:35 +0200 |
commit | a0906208ea3906b3820307aa4bfe811b8d2eadb6 (patch) | |
tree | e5cf16535586b3e197cb72141009b620f5ab0fc5 /activitypub.c | |
parent | 5bec358fa0f7d6652e732878567936752c26a827 (diff) |
Use some new xs_stock values.
Diffstat (limited to 'activitypub.c')
-rw-r--r-- | activitypub.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activitypub.c b/activitypub.c index 6fb6bf5..8b80683 100644 --- a/activitypub.c +++ b/activitypub.c @@ -820,11 +820,10 @@ xs_dict *msg_collection(snac *snac, char *id) { xs_dict *msg = msg_base(snac, "OrderedCollection", id, NULL, NULL, NULL); xs *ol = xs_list_new(); - xs *nz = xs_number_new(0); msg = xs_dict_append(msg, "attributedTo", snac->actor); msg = xs_dict_append(msg, "orderedItems", ol); - msg = xs_dict_append(msg, "totalItems", nz); + msg = xs_dict_append(msg, "totalItems", xs_stock_0); return msg; } @@ -1273,7 +1272,6 @@ int update_question(snac *user, const char *id) { xs *msg = NULL; xs *rcnt = xs_dict_new(); - xs *z = xs_number_new(0); xs *lopts = xs_list_new(); xs_list *opts; xs_list *p; @@ -1298,7 +1296,7 @@ int update_question(snac *user, const char *id) const char *name = xs_dict_get(v, "name"); if (name) { lopts = xs_list_append(lopts, name); - rcnt = xs_dict_set(rcnt, name, z); + rcnt = xs_dict_set(rcnt, name, xs_stock_0); } } |