summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-24 16:35:45 +0200
committerdefault <nobody@localhost>2023-04-24 16:35:45 +0200
commit3d20adc8406cb1132f035ce0eb54a160ff2882eb (patch)
treed7a14370a6ff17cfe0e44e2e4d7121ab5753d536
parent415381831ef4f1be7eefa5a479e846c52b1e7a26 (diff)
Added some more Instance values.
-rw-r--r--mastoapi.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 96ab2d4..1b34187 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1159,6 +1159,25 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
cfg = xs_dict_append(cfg, "statuses", d11);
}
+ {
+ xs *d11 = xs_dict_new();
+ xs *mt = xs_list_new();
+
+ mt = xs_list_append(mt, "image/jpeg");
+ mt = xs_list_append(mt, "image/png");
+ mt = xs_list_append(mt, "image/gif");
+
+ d11 = xs_dict_append(d11, "supported_mime_types", mt);
+
+ d11 = xs_dict_append(d11, "image_size_limit", z);
+ d11 = xs_dict_append(d11, "image_matrix_limit", z);
+ d11 = xs_dict_append(d11, "video_size_limit", z);
+ d11 = xs_dict_append(d11, "video_matrix_limit", z);
+ d11 = xs_dict_append(d11, "video_frame_rate_limit", z);
+
+ cfg = xs_dict_append(cfg, "media_attachments", d11);
+ }
+
ins = xs_dict_append(ins, "configuration", cfg);
*body = xs_json_dumps_pp(ins, 4);