aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2025-09-03 06:38:07 +0200
committergrunfink <grunfink@comam.es>2025-09-03 06:38:07 +0200
commit4661d7f5bc076be896c7192bb63a7c7d726993da (patch)
tree2bc87b6e634c7c885bbce168aaf5acd6f6c30894 /mastoapi.c
parentd358f5bcd0dfe326a5e0361237ac238a25785292 (diff)
Renamed function list_content() to list_members().
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c8
1 files changed, 4 insertions, 4 deletions
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 {