From cca190bd6a422d2edde8e317cae5198cd6d8affa Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 4 Feb 2023 13:44:35 +1100 Subject: [PATCH] Typo --- lib/adamantium/syndication/mastodon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adamantium/syndication/mastodon.rb b/lib/adamantium/syndication/mastodon.rb index 0e6460d..eb93487 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(URL.open(file[:value]).read) + file.write(URI.open(file[:value]).read) file.rewind response = HTTParty.post("#{mastodon_server}api/v2/media", { headers: {