mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
In /relationship, the id[] can be a list.
This commit is contained in:
parent
2a7f5f7b4d
commit
2a073116d3
@ -931,6 +931,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||||||
const char *md5 = xs_dict_get(args, "id[]");
|
const char *md5 = xs_dict_get(args, "id[]");
|
||||||
|
|
||||||
if (!xs_is_null(md5)) {
|
if (!xs_is_null(md5)) {
|
||||||
|
if (xs_type(md5) == XSTYPE_LIST)
|
||||||
|
md5 = xs_list_get(md5, 0);
|
||||||
|
|
||||||
xs *rel = mastoapi_relationship(&snac1, md5);
|
xs *rel = mastoapi_relationship(&snac1, md5);
|
||||||
|
|
||||||
if (rel != NULL)
|
if (rel != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user