Fix MIME type for image
This commit is contained in:
parent
e6722876bd
commit
5c27528247
1 changed files with 1 additions and 1 deletions
2
scl.py
2
scl.py
|
@ -222,7 +222,7 @@ def do_initial_post(
|
||||||
map_image.save(map_image_file, format="WebP", method=6)
|
map_image.save(map_image_file, format="WebP", method=6)
|
||||||
map_media_post = mastodon_client.media_post(
|
map_media_post = mastodon_client.media_post(
|
||||||
map_image_file.getvalue(),
|
map_image_file.getvalue(),
|
||||||
mime_type="image/png",
|
mime_type="image/webp",
|
||||||
description=alt_text,
|
description=alt_text,
|
||||||
)
|
)
|
||||||
map_media_post_id = map_media_post["id"]
|
map_media_post_id = map_media_post["id"]
|
||||||
|
|
Loading…
Reference in a new issue