summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2023-08-13 12:09:35 +0200
committerGravatar default2023-08-13 12:09:35 +0200
commita0906208ea3906b3820307aa4bfe811b8d2eadb6 (patch)
treee5cf16535586b3e197cb72141009b620f5ab0fc5 /activitypub.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-a0906208ea3906b3820307aa4bfe811b8d2eadb6.tar.gz
snac2-a0906208ea3906b3820307aa4bfe811b8d2eadb6.tar.xz
snac2-a0906208ea3906b3820307aa4bfe811b8d2eadb6.zip
Use some new xs_stock values.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
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)
820{ 820{
821 xs_dict *msg = msg_base(snac, "OrderedCollection", id, NULL, NULL, NULL); 821 xs_dict *msg = msg_base(snac, "OrderedCollection", id, NULL, NULL, NULL);
822 xs *ol = xs_list_new(); 822 xs *ol = xs_list_new();
823 xs *nz = xs_number_new(0);
824 823
825 msg = xs_dict_append(msg, "attributedTo", snac->actor); 824 msg = xs_dict_append(msg, "attributedTo", snac->actor);
826 msg = xs_dict_append(msg, "orderedItems", ol); 825 msg = xs_dict_append(msg, "orderedItems", ol);
827 msg = xs_dict_append(msg, "totalItems", nz); 826 msg = xs_dict_append(msg, "totalItems", xs_stock_0);
828 827
829 return msg; 828 return msg;
830} 829}
@@ -1273,7 +1272,6 @@ int update_question(snac *user, const char *id)
1273{ 1272{
1274 xs *msg = NULL; 1273 xs *msg = NULL;
1275 xs *rcnt = xs_dict_new(); 1274 xs *rcnt = xs_dict_new();
1276 xs *z = xs_number_new(0);
1277 xs *lopts = xs_list_new(); 1275 xs *lopts = xs_list_new();
1278 xs_list *opts; 1276 xs_list *opts;
1279 xs_list *p; 1277 xs_list *p;
@@ -1298,7 +1296,7 @@ int update_question(snac *user, const char *id)
1298 const char *name = xs_dict_get(v, "name"); 1296 const char *name = xs_dict_get(v, "name");
1299 if (name) { 1297 if (name) {
1300 lopts = xs_list_append(lopts, name); 1298 lopts = xs_list_append(lopts, name);
1301 rcnt = xs_dict_set(rcnt, name, z); 1299 rcnt = xs_dict_set(rcnt, name, xs_stock_0);
1302 } 1300 }
1303 } 1301 }
1304 1302