diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | http_codes.h | 2 | ||||
| -rw-r--r-- | mastoapi.c | 1 | ||||
| -rw-r--r-- | xs_set.h | 2 |
4 files changed, 4 insertions, 3 deletions
| @@ -52,7 +52,7 @@ mastoapi.o: mastoapi.c xs.h xs_hex.h xs_openssl.h xs_json.h xs_io.h \ | |||
| 52 | snac.o: snac.c xs.h xs_hex.h xs_io.h xs_unicode.h xs_json.h xs_curl.h \ | 52 | snac.o: snac.c xs.h xs_hex.h xs_io.h xs_unicode.h xs_json.h xs_curl.h \ |
| 53 | xs_openssl.h xs_socket.h xs_url.h xs_httpd.h xs_mime.h xs_regex.h \ | 53 | xs_openssl.h xs_socket.h xs_url.h xs_httpd.h xs_mime.h xs_regex.h \ |
| 54 | xs_set.h xs_time.h xs_glob.h xs_random.h xs_match.h xs_fcgi.h xs_html.h \ | 54 | xs_set.h xs_time.h xs_glob.h xs_random.h xs_match.h xs_fcgi.h xs_html.h \ |
| 55 | snac.h | 55 | snac.h http_codes.h |
| 56 | upgrade.o: upgrade.c xs.h xs_io.h xs_json.h xs_glob.h snac.h | 56 | upgrade.o: upgrade.c xs.h xs_io.h xs_json.h xs_glob.h snac.h |
| 57 | utils.o: utils.c xs.h xs_io.h xs_json.h xs_time.h xs_openssl.h \ | 57 | utils.o: utils.c xs.h xs_io.h xs_json.h xs_time.h xs_openssl.h \ |
| 58 | xs_random.h xs_glob.h xs_curl.h xs_regex.h snac.h | 58 | xs_random.h xs_glob.h xs_curl.h xs_regex.h snac.h |
diff --git a/http_codes.h b/http_codes.h index 795f92a..a1958f1 100644 --- a/http_codes.h +++ b/http_codes.h | |||
| @@ -42,4 +42,4 @@ HTTP_STATUS(502, BAD_GATEWAY, Bad Gateway) | |||
| 42 | HTTP_STATUS(503, SERVICE_UNAVAILABLE, Service Unavailable) | 42 | HTTP_STATUS(503, SERVICE_UNAVAILABLE, Service Unavailable) |
| 43 | HTTP_STATUS(504, GATEWAY_TIMEOUT, Gateway Timeout) | 43 | HTTP_STATUS(504, GATEWAY_TIMEOUT, Gateway Timeout) |
| 44 | HTTP_STATUS(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported) | 44 | HTTP_STATUS(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported) |
| 45 | HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage) \ No newline at end of file | 45 | HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage) |
| @@ -1466,6 +1466,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, | |||
| 1466 | /* we don't serve statuses of others; return the empty list */ | 1466 | /* we don't serve statuses of others; return the empty list */ |
| 1467 | out = xs_list_new(); | 1467 | out = xs_list_new(); |
| 1468 | } | 1468 | } |
| 1469 | else | ||
| 1469 | if (strcmp(opt, "featured_tags") == 0) { | 1470 | if (strcmp(opt, "featured_tags") == 0) { |
| 1470 | /* snac doesn't have features tags, yet? */ | 1471 | /* snac doesn't have features tags, yet? */ |
| 1471 | /* implement empty response so apps like Tokodon don't show an error */ | 1472 | /* implement empty response so apps like Tokodon don't show an error */ |
| @@ -111,4 +111,4 @@ int xs_set_add(xs_set *s, const xs_val *data) | |||
| 111 | 111 | ||
| 112 | #endif /* XS_IMPLEMENTATION */ | 112 | #endif /* XS_IMPLEMENTATION */ |
| 113 | 113 | ||
| 114 | #endif /* XS_SET_H */ \ No newline at end of file | 114 | #endif /* XS_SET_H */ |