From 3db28ab622c9b3b64f50fb7121d405fe6fa0fa90 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Wed, 15 Feb 2023 07:31:25 +1100 Subject: [PATCH] Fix bug in masto photo upload --- lib/adamantium/client/mastodon.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/adamantium/client/mastodon.rb b/lib/adamantium/client/mastodon.rb index af9e0fc..27b338c 100644 --- a/lib/adamantium/client/mastodon.rb +++ b/lib/adamantium/client/mastodon.rb @@ -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