Browse Source

Fix for media attachments remote URL download

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
ed94e998bc
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      app/models/media_attachment.rb

+ 1
- 5
app/models/media_attachment.rb View File

@ -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…
Cancel
Save