commit eed24fd

default  ·  2023-05-06 09:10:08 +0000 UTC
parent 5b7a22e
Fixed a bug in Tusky's image send.
1 files changed,  +0, -19
+0, -19
 1@@ -1333,25 +1333,6 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
 2             cfg = xs_dict_append(cfg, "statuses", d11);
 3         }
 4 
 5-        {
 6-            xs *d11 = xs_dict_new();
 7-            xs *mt  = xs_list_new();
 8-
 9-            mt = xs_list_append(mt, "image/jpeg");
10-            mt = xs_list_append(mt, "image/png");
11-            mt = xs_list_append(mt, "image/gif");
12-
13-            d11 = xs_dict_append(d11, "supported_mime_types", mt);
14-
15-            d11 = xs_dict_append(d11, "image_size_limit", z);
16-            d11 = xs_dict_append(d11, "image_matrix_limit", z);
17-            d11 = xs_dict_append(d11, "video_size_limit", z);
18-            d11 = xs_dict_append(d11, "video_matrix_limit", z);
19-            d11 = xs_dict_append(d11, "video_frame_rate_limit", z);
20-
21-            cfg = xs_dict_append(cfg, "media_attachments", d11);
22-        }
23-
24         ins = xs_dict_append(ins, "configuration", cfg);
25 
26         *body  = xs_json_dumps_pp(ins, 4);