Update fediverse.py

This commit is contained in:
Namhyeon Go 2024-10-09 01:15:10 +09:00 committed by GitHub
parent f81d2f4649
commit a0775bd15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -138,7 +138,7 @@ class Fediverse(Extension):
buffered = io.BytesIO()
img_png.save(buffered, format="PNG")
encoded_image = base64.b64encode(buffered.getvalue()).decode(
client_encoding
"ascii"
)
return encoded_image
except: