Fix MIME type for image
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/vulnerability-scan Pipeline was successful

This commit is contained in:
Liam Steckler 2024-11-23 22:13:46 -08:00
parent e6722876bd
commit 5c27528247

2
scl.py
View file

@ -222,7 +222,7 @@ def do_initial_post(
map_image.save(map_image_file, format="WebP", method=6)
map_media_post = mastodon_client.media_post(
map_image_file.getvalue(),
mime_type="image/png",
mime_type="image/webp",
description=alt_text,
)
map_media_post_id = map_media_post["id"]