diff options
author | default <nobody@localhost> | 2024-05-31 11:00:05 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-31 11:00:05 +0200 |
commit | 9d87960836ebd7ee17b49c3f74d89e67f253548f (patch) | |
tree | 8d4c18ef557f8bbbda92b4e5a60875b02fb4f71b | |
parent | a5e331c05e79a6cd0904b23ab9c71724cd628d16 (diff) |
mastoapi: return an empty /v1/trends/tags.
-rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 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"); |