mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix for media attachments remote URL download
This commit is contained in:
parent
1d9c886518
commit
ed94e998bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user