commit a5e331c
default
·
2024-05-31 08:16:43 +0000 UTC
parent 71c0799
mastoapi: more list tweaks.
1 files changed,
+5,
-0
+5,
-0
1@@ -2991,6 +2991,10 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
2 /* delete account from list */
3 p = xs_list_get(l, -2);
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@@ -3006,6 +3010,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
13 }
14 }
15
16+ *ctype = "application/json";
17 status = HTTP_STATUS_OK;
18 }
19 else