diff --git a/lib/adamantium/syndication/mastodon.rb b/lib/adamantium/syndication/mastodon.rb index eb93487..5811bf8 100644 --- a/lib/adamantium/syndication/mastodon.rb +++ b/lib/adamantium/syndication/mastodon.rb @@ -31,7 +31,7 @@ module Adamantium media_ids = post[:photos]&.map do |photo| file = Tempfile.new(SecureRandom.uuid) - file.write(URI.open(file[:value]).read) + file.write(URI.open(photo[:value]).read) file.rewind response = HTTParty.post("#{mastodon_server}api/v2/media", { headers: {