mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-26 06:53:37 +00:00
Avoid crash in optional mastoapi argument.
This commit is contained in:
parent
cf8d91147b
commit
a9f0f2f695
1 changed files with 3 additions and 0 deletions
|
@ -1569,6 +1569,9 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
|
||||||
if (xs_is_null(media_ids))
|
if (xs_is_null(media_ids))
|
||||||
media_ids = xs_dict_get(args, "media_ids[]");
|
media_ids = xs_dict_get(args, "media_ids[]");
|
||||||
|
|
||||||
|
if (xs_is_null(visibility))
|
||||||
|
visibility = "public";
|
||||||
|
|
||||||
xs *attach_list = xs_list_new();
|
xs *attach_list = xs_list_new();
|
||||||
xs *irt = NULL;
|
xs *irt = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue