diff options
| author | 2024-05-31 11:01:42 +0200 | |
|---|---|---|
| committer | 2024-05-31 11:01:42 +0200 | |
| commit | c80a30e228777637773012f0b886858494782f7a (patch) | |
| tree | 0bfdca34d409078d02d79086fe57bd122a4d9bd0 /mastoapi.c | |
| parent | mastoapi: return an empty /v1/trends/tags. (diff) | |
| download | snac2-c80a30e228777637773012f0b886858494782f7a.tar.gz snac2-c80a30e228777637773012f0b886858494782f7a.tar.xz snac2-c80a30e228777637773012f0b886858494782f7a.zip | |
mastoapi: return an empty /v1/trends/statuses.
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -2265,6 +2265,12 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 2265 | status = HTTP_STATUS_OK; | 2265 | status = HTTP_STATUS_OK; |
| 2266 | } | 2266 | } |
| 2267 | else | 2267 | else |
| 2268 | if (strcmp(cmd, "/v1/trends/statuses") == 0) { /** **/ | ||
| 2269 | *body = xs_dup("[]"); | ||
| 2270 | *ctype = "application/json"; | ||
| 2271 | status = HTTP_STATUS_OK; | ||
| 2272 | } | ||
| 2273 | else | ||
| 2268 | if (strcmp(cmd, "/v2/search") == 0) { /** **/ | 2274 | if (strcmp(cmd, "/v2/search") == 0) { /** **/ |
| 2269 | if (logged_in) { | 2275 | if (logged_in) { |
| 2270 | const char *q = xs_dict_get(args, "q"); | 2276 | const char *q = xs_dict_get(args, "q"); |