commit a9f0f2f

default  ·  2023-05-04 04:27:13 +0000 UTC
parent cf8d911
Avoid crash in optional mastoapi argument.
1 files changed,  +3, -0
+3, -0
 1@@ -1569,6 +1569,9 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
 2             if (xs_is_null(media_ids))
 3                 media_ids = xs_dict_get(args, "media_ids[]");
 4 
 5+            if (xs_is_null(visibility))
 6+                visibility = "public";
 7+
 8             xs *attach_list = xs_list_new();
 9             xs *irt         = NULL;
10