aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornicole mikołajczyk <git@mkljczk.pl>2026-08-18 14:41:35 +0200
committernicole mikołajczyk <git@mkljczk.pl>2026-08-18 14:41:35 +0200
commit50e2fc7b8ad76033bbe7b0b2da0dbe4a8744d633 (patch)
treebf1e49aaa95246f1199be5730db94669e83c19a1
parent1c91738ddac50665fa6a8f3a6fd8892b72de005d (diff)
don't return reactions count as string
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
-rw-r--r--mastoapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index d29ff01..027ec42 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1186,13 +1186,13 @@ xs_dict *mastoapi_status(snac *snac, const xs_dict *msg)
int count = 1;
if (contentl) {
- count = atoi(xs_list_get(contentl, 0)) + 1;
+ count = xs_number_get(xs_list_get(contentl, 0)) + 1;
if (strncmp(xs_list_get(contentl, 1), xs_stock(XSTYPE_TRUE), 1) == 0)
me = xs_stock(XSTYPE_TRUE);
}
xs *fl = xs_list_new();
- xs *c1 = xs_fmt("%d", count);
+ xs *c1 = xs_number_new(count);
fl = xs_list_append(fl, c1, me);
sfrl = xs_dict_append(sfrl, content, fl);
}