diff options
| author | 2023-05-06 11:10:08 +0200 | |
|---|---|---|
| committer | 2023-05-06 11:10:08 +0200 | |
| commit | eed24fde1a9c3577cc2d41dfdb25c13ea816dd42 (patch) | |
| tree | f5e389ab32953557a18772c59602f94c1c39a07b | |
| parent | Updated examples/docket-entrypoint.sh. (diff) | |
| download | penes-snac2-eed24fde1a9c3577cc2d41dfdb25c13ea816dd42.tar.gz penes-snac2-eed24fde1a9c3577cc2d41dfdb25c13ea816dd42.tar.xz penes-snac2-eed24fde1a9c3577cc2d41dfdb25c13ea816dd42.zip | |
Fixed a bug in Tusky's image send.
| -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, | |||
| 1333 | cfg = xs_dict_append(cfg, "statuses", d11); | 1333 | cfg = xs_dict_append(cfg, "statuses", d11); |
| 1334 | } | 1334 | } |
| 1335 | 1335 | ||
| 1336 | { | ||
| 1337 | xs *d11 = xs_dict_new(); | ||
| 1338 | xs *mt = xs_list_new(); | ||
| 1339 | |||
| 1340 | mt = xs_list_append(mt, "image/jpeg"); | ||
| 1341 | mt = xs_list_append(mt, "image/png"); | ||
| 1342 | mt = xs_list_append(mt, "image/gif"); | ||
| 1343 | |||
| 1344 | d11 = xs_dict_append(d11, "supported_mime_types", mt); | ||
| 1345 | |||
| 1346 | d11 = xs_dict_append(d11, "image_size_limit", z); | ||
| 1347 | d11 = xs_dict_append(d11, "image_matrix_limit", z); | ||
| 1348 | d11 = xs_dict_append(d11, "video_size_limit", z); | ||
| 1349 | d11 = xs_dict_append(d11, "video_matrix_limit", z); | ||
| 1350 | d11 = xs_dict_append(d11, "video_frame_rate_limit", z); | ||
| 1351 | |||
| 1352 | cfg = xs_dict_append(cfg, "media_attachments", d11); | ||
| 1353 | } | ||
| 1354 | |||
| 1355 | ins = xs_dict_append(ins, "configuration", cfg); | 1336 | ins = xs_dict_append(ins, "configuration", cfg); |
| 1356 | 1337 | ||
| 1357 | *body = xs_json_dumps_pp(ins, 4); | 1338 | *body = xs_json_dumps_pp(ins, 4); |