diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -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 |