diff options
author | default <nobody@localhost> | 2024-05-31 11:01:42 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-31 11:01:42 +0200 |
commit | c80a30e228777637773012f0b886858494782f7a (patch) | |
tree | 0bfdca34d409078d02d79086fe57bd122a4d9bd0 | |
parent | 9d87960836ebd7ee17b49c3f74d89e67f253548f (diff) |
mastoapi: return an empty /v1/trends/statuses.
-rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2265,6 +2265,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, status = HTTP_STATUS_OK; } else + if (strcmp(cmd, "/v1/trends/statuses") == 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"); |