Fix bug in masto photo upload

This commit is contained in:
2023-02-15 07:31:25 +11:00
parent 3f41aa87b1
commit 3db28ab622

View File

@@ -48,6 +48,7 @@ module Adamantium
def upload_media(photo:)
mastodon_server = settings.mastodon_server.split("@").first
mastodon_token = settings.mastodon_token
file = Tempfile.new(SecureRandom.uuid)
file.write(URI.open(photo[:value]).read)
file.rewind