From 4661d7f5bc076be896c7192bb63a7c7d726993da Mon Sep 17 00:00:00 2001 From: grunfink Date: Wed, 3 Sep 2025 06:38:07 +0200 Subject: Renamed function list_content() to list_members(). --- mastoapi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mastoapi.c') diff --git a/mastoapi.c b/mastoapi.c index 42f3a47..568426b 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -1560,7 +1560,7 @@ xs_list *mastoapi_account_lists(snac *user, const char *uid) const char *list_id = xs_list_get(li, 0); const char *list_title = xs_list_get(li, 1); if (uid) { - xs *users = list_content(user, list_id, NULL, 0); + xs *users = list_members(user, list_id, NULL, 0); if (xs_list_in(users, actor_md5) == -1) continue; } @@ -2087,7 +2087,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, p = xs_list_get(l, -2); if (p && xs_is_hex(p)) { - xs *actors = list_content(&snac1, p, NULL, 0); + xs *actors = list_members(&snac1, p, NULL, 0); xs *out = xs_list_new(); int c = 0; const char *v; @@ -3297,7 +3297,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, const char *v; while (xs_list_next(accts, &v, &c)) { - list_content(&snac, id, v, 1); + list_members(&snac, id, v, 1); } xs *out = xs_dict_new(); @@ -3507,7 +3507,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path, const char *v; while (xs_list_next(accts, &v, &c)) { - list_content(&snac, p, v, 2); + list_members(&snac, p, v, 2); } } else { -- cgit v1.2.3