diff options
author | default <nobody@localhost> | 2023-05-06 11:10:08 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-05-06 11:10:08 +0200 |
commit | eed24fde1a9c3577cc2d41dfdb25c13ea816dd42 (patch) | |
tree | f5e389ab32953557a18772c59602f94c1c39a07b /mastoapi.c | |
parent | 5b7a22e5b01608d046a665bb1a16dd4b4785e507 (diff) |
Fixed a bug in Tusky's image send.
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -1333,25 +1333,6 @@ 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); |