diff options
| author | 2023-05-11 10:44:27 +0200 | |
|---|---|---|
| committer | 2023-05-11 10:44:27 +0200 | |
| commit | 2a073116d3920e6fe5a9fcba2215a7fd903e0c60 (patch) | |
| tree | a5150fe9ec0b5afe0584979e2320845e3a6c6d83 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-2a073116d3920e6fe5a9fcba2215a7fd903e0c60.tar.gz snac2-2a073116d3920e6fe5a9fcba2215a7fd903e0c60.tar.xz snac2-2a073116d3920e6fe5a9fcba2215a7fd903e0c60.zip | |
In /relationship, the id[] can be a list.
| -rw-r--r-- | mastoapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -931,6 +931,9 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 931 | const char *md5 = xs_dict_get(args, "id[]"); | 931 | const char *md5 = xs_dict_get(args, "id[]"); |
| 932 | 932 | ||
| 933 | if (!xs_is_null(md5)) { | 933 | if (!xs_is_null(md5)) { |
| 934 | if (xs_type(md5) == XSTYPE_LIST) | ||
| 935 | md5 = xs_list_get(md5, 0); | ||
| 936 | |||
| 934 | xs *rel = mastoapi_relationship(&snac1, md5); | 937 | xs *rel = mastoapi_relationship(&snac1, md5); |
| 935 | 938 | ||
| 936 | if (rel != NULL) | 939 | if (rel != NULL) |