summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-03-09 08:44:48 +0100
committerdefault <nobody@localhost>2024-03-09 08:44:48 +0100
commit91bb0615d982d1adcc5680c346f9510905464584 (patch)
tree5433a2dcdc2cc34115b76570bdc63b49429093bc /mastoapi.c
parent00b019b8902e9d319d855b9156f97f931923331c (diff)
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 685c644..416f96c 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1172,7 +1172,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
if (xs_is_null(val_links))
val_links = xs_stock_dict;
- while (xs_dict_iter(&metadata, &k, &v)) {
+ int c = 0;
+ while (xs_dict_next(metadata, &k, &v, &c)) {
xs *val_date = NULL;
xs_number *verified_time = xs_dict_get(val_links, v);