commit c80a30e

default  ·  2024-05-31 09:01:42 +0000 UTC
parent 9d87960
mastoapi: return an empty /v1/trends/statuses.
1 files changed,  +6, -0
+6, -0
 1@@ -2265,6 +2265,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/statuses") == 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");