summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-05-31 10:16:43 +0200
committerGravatar default2024-05-31 10:16:43 +0200
commita5e331c05e79a6cd0904b23ab9c71724cd628d16 (patch)
treedc51e15931c7eca74f5d0f18fc94a21fbfa1eb4c
parentmastoapi: more list tweaks. (diff)
downloadsnac2-a5e331c05e79a6cd0904b23ab9c71724cd628d16.tar.gz
snac2-a5e331c05e79a6cd0904b23ab9c71724cd628d16.tar.xz
snac2-a5e331c05e79a6cd0904b23ab9c71724cd628d16.zip
mastoapi: more list tweaks.
-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,
2991 /* delete account from list */ 2991 /* delete account from list */
2992 p = xs_list_get(l, -2); 2992 p = xs_list_get(l, -2);
2993 const xs_list *accts = xs_dict_get(args, "account_ids[]"); 2993 const xs_list *accts = xs_dict_get(args, "account_ids[]");
2994
2995 if (xs_is_null(accts))
2996 accts = xs_dict_get(args, "account_ids");
2997
2994 int c = 0; 2998 int c = 0;
2995 const char *v; 2999 const char *v;
2996 3000
@@ -3006,6 +3010,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
3006 } 3010 }
3007 } 3011 }
3008 3012
3013 *ctype = "application/json";
3009 status = HTTP_STATUS_OK; 3014 status = HTTP_STATUS_OK;
3010 } 3015 }
3011 else 3016 else