summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-05-31 10:16:43 +0200
committerdefault <nobody@localhost>2024-05-31 10:16:43 +0200
commita5e331c05e79a6cd0904b23ab9c71724cd628d16 (patch)
treedc51e15931c7eca74f5d0f18fc94a21fbfa1eb4c /mastoapi.c
parent71c07992314d2457b83afbc3766871972c13d57c (diff)
mastoapi: more list tweaks.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 70a927e..9860872 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2991,6 +2991,10 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
/* delete account from list */
p = xs_list_get(l, -2);
const xs_list *accts = xs_dict_get(args, "account_ids[]");
+
+ if (xs_is_null(accts))
+ accts = xs_dict_get(args, "account_ids");
+
int c = 0;
const char *v;
@@ -3006,6 +3010,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
}
}
+ *ctype = "application/json";
status = HTTP_STATUS_OK;
}
else