mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
mastoapi: more list tweaks.
This commit is contained in:
parent
71c0799231
commit
a5e331c05e
1 changed files with 5 additions and 0 deletions
|
@ -2991,6 +2991,10 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
|
||||||
/* delete account from list */
|
/* delete account from list */
|
||||||
p = xs_list_get(l, -2);
|
p = xs_list_get(l, -2);
|
||||||
const xs_list *accts = xs_dict_get(args, "account_ids[]");
|
const xs_list *accts = xs_dict_get(args, "account_ids[]");
|
||||||
|
|
||||||
|
if (xs_is_null(accts))
|
||||||
|
accts = xs_dict_get(args, "account_ids");
|
||||||
|
|
||||||
int c = 0;
|
int c = 0;
|
||||||
const char *v;
|
const char *v;
|
||||||
|
|
||||||
|
@ -3006,6 +3010,7 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*ctype = "application/json";
|
||||||
status = HTTP_STATUS_OK;
|
status = HTTP_STATUS_OK;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue