commit 71c0799
default
·
2024-05-31 08:00:35 +0000 UTC
parent 15bca09
mastoapi: more list tweaks.
1 files changed,
+5,
-0
+5,
-0
1@@ -2907,6 +2907,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2 if (op && id && xs_is_hex(id)) {
3 if (strcmp(op, "accounts") == 0) {
4 const xs_list *accts = xs_dict_get(args, "account_ids[]");
5+
6+ if (xs_is_null(accts))
7+ accts = xs_dict_get(args, "account_ids");
8+
9 int c = 0;
10 const char *v;
11
12@@ -2914,6 +2918,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
13 list_content(&snac, id, v, 1);
14 }
15
16+ *ctype = "application/json";
17 status = HTTP_STATUS_OK;
18 }
19 }