diff options
| author | grunfink <grunfink@comam.es> | 2025-09-03 06:38:07 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-09-03 06:38:07 +0200 |
| commit | 4661d7f5bc076be896c7192bb63a7c7d726993da (patch) | |
| tree | 2bc87b6e634c7c885bbce168aaf5acd6f6c30894 /mastoapi.c | |
| parent | d358f5bcd0dfe326a5e0361237ac238a25785292 (diff) | |
Renamed function list_content() to list_members().
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 { |