aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2026-08-26 08:09:07 +0200
committerdefault <nobody@localhost>2026-08-26 08:09:07 +0200
commit120308074813de49fea6728259b5d78a907ea9b2 (patch)
tree291d81d090e4c1d1ebf154a8c45c64e9cdbd555c /mastoapi.c
parentd7fc3d950d4654a3291066fed667f1b7d48e70bb (diff)
Use snac_op in 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 027ec42..571d7cb 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1795,7 +1795,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_members(user, list_id, NULL, 0);
+ xs *users = list_members(user, list_id, NULL, OP_LIST);
if (xs_list_in(users, actor_md5) == -1)
continue;
}
@@ -2527,7 +2527,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_members(&snac1, p, NULL, 0);
+ xs *actors = list_members(&snac1, p, NULL, OP_LIST);
xs *out = xs_list_new();
int c = 0;
const char *v;
@@ -3843,7 +3843,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
const char *v;
while (xs_list_next(accts, &v, &c)) {
- list_members(&snac, id, v, 1);
+ list_members(&snac, id, v, OP_ADD);
}
xs *out = xs_dict_new();
@@ -4052,7 +4052,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
const char *v;
while (xs_list_next(accts, &v, &c)) {
- list_members(&snac, p, v, 2);
+ list_members(&snac, p, v, OP_DEL);
}
}
else {