commit 2a07311
default
·
2023-05-11 08:44:27 +0000 UTC
parent 2a7f5f7
In /relationship, the id[] can be a list.
1 files changed,
+3,
-0
+3,
-0
1@@ -931,6 +931,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 const char *md5 = xs_dict_get(args, "id[]");
3
4 if (!xs_is_null(md5)) {
5+ if (xs_type(md5) == XSTYPE_LIST)
6+ md5 = xs_list_get(md5, 0);
7+
8 xs *rel = mastoapi_relationship(&snac1, md5);
9
10 if (rel != NULL)