mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
mastoapi: return an empty /v1/trends/tags.
This commit is contained in:
parent
a5e331c05e
commit
9d87960836
1 changed files with 6 additions and 0 deletions
|
@ -2259,6 +2259,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
|||
status = HTTP_STATUS_OK;
|
||||
}
|
||||
else
|
||||
if (strcmp(cmd, "/v1/trends/tags") == 0) { /** **/
|
||||
*body = xs_dup("[]");
|
||||
*ctype = "application/json";
|
||||
status = HTTP_STATUS_OK;
|
||||
}
|
||||
else
|
||||
if (strcmp(cmd, "/v2/search") == 0) { /** **/
|
||||
if (logged_in) {
|
||||
const char *q = xs_dict_get(args, "q");
|
||||
|
|
Loading…
Reference in a new issue