commit 9d87960

default  ·  2024-05-31 09:00:05 +0000 UTC
parent a5e331c
mastoapi: return an empty /v1/trends/tags.
1 files changed,  +6, -0
+6, -0
 1@@ -2259,6 +2259,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2         status = HTTP_STATUS_OK;
 3     }
 4     else
 5+    if (strcmp(cmd, "/v1/trends/tags") == 0) { /** **/
 6+        *body  = xs_dup("[]");
 7+        *ctype = "application/json";
 8+        status = HTTP_STATUS_OK;
 9+    }
10+    else
11     if (strcmp(cmd, "/v2/search") == 0) { /** **/
12         if (logged_in) {
13             const char *q      = xs_dict_get(args, "q");