From: Eugen Rochko Date: Mon, 5 Sep 2016 17:11:25 +0000 (+0200) Subject: Fix for media attachments remote URL download X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=ed94e998bcd8b952dbd6052309bdf5650b29be4f;p=mastodon.git Fix for media attachments remote URL download --- diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 3beb96e3a..835287ac9 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -12,10 +12,6 @@ class MediaAttachment < ApplicationRecord end def file_remote_url=(url) - unless self[:file_remote_url] == url - self.file = URI.parse(url) - end - - self[:file_remote_url] = url + self.file = URI.parse(url) end end