diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -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"); |