summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastoapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 0f7b5e4..70a927e 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2907,6 +2907,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2907 if (op && id && xs_is_hex(id)) { 2907 if (op && id && xs_is_hex(id)) {
2908 if (strcmp(op, "accounts") == 0) { 2908 if (strcmp(op, "accounts") == 0) {
2909 const xs_list *accts = xs_dict_get(args, "account_ids[]"); 2909 const xs_list *accts = xs_dict_get(args, "account_ids[]");
2910
2911 if (xs_is_null(accts))
2912 accts = xs_dict_get(args, "account_ids");
2913
2910 int c = 0; 2914 int c = 0;
2911 const char *v; 2915 const char *v;
2912 2916
@@ -2914,6 +2918,7 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
2914 list_content(&snac, id, v, 1); 2918 list_content(&snac, id, v, 1);
2915 } 2919 }
2916 2920
2921 *ctype = "application/json";
2917 status = HTTP_STATUS_OK; 2922 status = HTTP_STATUS_OK;
2918 } 2923 }
2919 } 2924 }