about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/media_attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index 3efab0aa1..932632b20 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -158,7 +158,7 @@ class MediaAttachment < ApplicationRecord
   end
 
   def needs_redownload?
-    file.blank? && remote_url.present?
+    (file.blank? || (Paperclip::Attachment.default_options[:storage] == :filesystem && !File.exist?(file.path))) && remote_url.present?
   end
 
   def video_or_audio?