summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastoapi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 2337007..4a6c53e 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2289,6 +2289,18 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2289 status = HTTP_STATUS_OK; 2289 status = HTTP_STATUS_OK;
2290 } 2290 }
2291 else 2291 else
2292 if (strcmp(cmd, "/v1/trends/tags") == 0) { /** **/
2293 *body = xs_dup("[]");
2294 *ctype = "application/json";
2295 status = HTTP_STATUS_OK;
2296 }
2297 else
2298 if (strcmp(cmd, "/v1/trends/statuses") == 0) { /** **/
2299 *body = xs_dup("[]");
2300 *ctype = "application/json";
2301 status = HTTP_STATUS_OK;
2302 }
2303 else
2292 if (strcmp(cmd, "/v2/search") == 0) { /** **/ 2304 if (strcmp(cmd, "/v2/search") == 0) { /** **/
2293 if (logged_in) { 2305 if (logged_in) {
2294 const char *q = xs_dict_get(args, "q"); 2306 const char *q = xs_dict_get(args, "q");