diff options
| author | 2024-05-31 11:00:05 +0200 | |
|---|---|---|
| committer | 2024-05-31 11:00:05 +0200 | |
| commit | 9d87960836ebd7ee17b49c3f74d89e67f253548f (patch) | |
| tree | 8d4c18ef557f8bbbda92b4e5a60875b02fb4f71b /mastoapi.c | |
| parent | mastoapi: more list tweaks. (diff) | |
| download | snac2-9d87960836ebd7ee17b49c3f74d89e67f253548f.tar.gz snac2-9d87960836ebd7ee17b49c3f74d89e67f253548f.tar.xz snac2-9d87960836ebd7ee17b49c3f74d89e67f253548f.zip | |
mastoapi: return an empty /v1/trends/tags.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -2259,6 +2259,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 2259 | status = HTTP_STATUS_OK; | 2259 | status = HTTP_STATUS_OK; |
| 2260 | } | 2260 | } |
| 2261 | else | 2261 | else |
| 2262 | if (strcmp(cmd, "/v1/trends/tags") == 0) { /** **/ | ||
| 2263 | *body = xs_dup("[]"); | ||
| 2264 | *ctype = "application/json"; | ||
| 2265 | status = HTTP_STATUS_OK; | ||
| 2266 | } | ||
| 2267 | else | ||
| 2262 | if (strcmp(cmd, "/v2/search") == 0) { /** **/ | 2268 | if (strcmp(cmd, "/v2/search") == 0) { /** **/ |
| 2263 | if (logged_in) { | 2269 | if (logged_in) { |
| 2264 | const char *q = xs_dict_get(args, "q"); | 2270 | const char *q = xs_dict_get(args, "q"); |