commit 25ef07b

Louis Brauer  ·  2024-05-27 21:55:51 +0000 UTC
parent 8fc788e
More or less smaller fixes :)
4 files changed,  +4, -3
+1, -1
1@@ -52,7 +52,7 @@ mastoapi.o: mastoapi.c xs.h xs_hex.h xs_openssl.h xs_json.h xs_io.h \
2 snac.o: snac.c xs.h xs_hex.h xs_io.h xs_unicode.h xs_json.h xs_curl.h \
3  xs_openssl.h xs_socket.h xs_url.h xs_httpd.h xs_mime.h xs_regex.h \
4  xs_set.h xs_time.h xs_glob.h xs_random.h xs_match.h xs_fcgi.h xs_html.h \
5- snac.h
6+ snac.h http_codes.h
7 upgrade.o: upgrade.c xs.h xs_io.h xs_json.h xs_glob.h snac.h
8 utils.o: utils.c xs.h xs_io.h xs_json.h xs_time.h xs_openssl.h \
9  xs_random.h xs_glob.h xs_curl.h xs_regex.h snac.h
+1, -1
1@@ -42,4 +42,4 @@ HTTP_STATUS(502, BAD_GATEWAY, Bad Gateway)
2 HTTP_STATUS(503, SERVICE_UNAVAILABLE, Service Unavailable)
3 HTTP_STATUS(504, GATEWAY_TIMEOUT, Gateway Timeout)
4 HTTP_STATUS(505, HTTP_VERSION_NOT_SUPPORTED, HTTP Version Not Supported)
5-HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage)
6+HTTP_STATUS(507, INSUFFICIENT_STORAGE, Insufficient Storage)
+1, -0
1@@ -1466,6 +1466,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2                         /* we don't serve statuses of others; return the empty list */ 
3                         out = xs_list_new();
4                     }
5+                    else
6                     if (strcmp(opt, "featured_tags") == 0) {
7                         /* snac doesn't have features tags, yet? */
8                         /* implement empty response so apps like Tokodon don't show an error */
+1, -1
1@@ -111,4 +111,4 @@ int xs_set_add(xs_set *s, const xs_val *data)
2 
3 #endif /* XS_IMPLEMENTATION */
4 
5-#endif /* XS_SET_H */
6+#endif /* XS_SET_H */