summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-15 04:10:11 +0100
committerdefault <nobody@localhost>2024-03-15 04:10:11 +0100
commit7aa5250eb8c68472e476faf8399e98f2ba9a9c3b (patch)
treec18ee69ac1bbf727d9295be9a62820badce8df22 /activitypub.c
parentb7eb5348b763a4350ecdc2b474e19f67d3c270d1 (diff)
Backport from xs.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c
index fae0c15..eb1552d 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1074,7 +1074,7 @@ xs_dict *msg_collection(snac *snac, char *id)
msg = xs_dict_append(msg, "attributedTo", snac->actor);
msg = xs_dict_append(msg, "orderedItems", ol);
- msg = xs_dict_append(msg, "totalItems", xs_stock_0);
+ msg = xs_dict_append(msg, "totalItems", xs_stock(0));
return msg;
}
@@ -1610,7 +1610,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, xs_stock_0);
+ rcnt = xs_dict_set(rcnt, name, xs_stock(0));
}
}