From 9d87960836ebd7ee17b49c3f74d89e67f253548f Mon Sep 17 00:00:00 2001 From: default Date: Fri, 31 May 2024 11:00:05 +0200 Subject: mastoapi: return an empty /v1/trends/tags. --- mastoapi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mastoapi.c b/mastoapi.c index 9860872..a17ff6e 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -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"); -- cgit v1.2.3