logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: ed94e998bcd8b952dbd6052309bdf5650b29be4f
parent: 1d9c886518ab389917ddf3f6c73daa31536d7fe9
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon,  5 Sep 2016 19:11:25 +0200

Fix for media attachments remote URL download

Diffstat:

Mapp/models/media_attachment.rb6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 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