This commit is contained in:
2023-02-04 13:44:35 +11:00
parent 9619227b0e
commit cca190bd6a

View File

@@ -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: {