about summary refs log tree commit diff
path: root/app/models/media_attachment.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/media_attachment.rb')
-rw-r--r--app/models/media_attachment.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index 324bd0305..4fed048a5 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -197,8 +197,8 @@ class MediaAttachment < ApplicationRecord
   scope :uninlined,  -> { where(inline: false) }
   scope :inlined,    -> { rewhere(inline: true) }
   scope :all_media,  -> { unscope(where: :inline) }
-  scope :local,      -> { where(remote_url: '') }
-  scope :remote,     -> { where.not(remote_url: '') }
+  scope :local,      -> { all_media.where(remote_url: '') }
+  scope :remote,     -> { all_media.where.not(remote_url: '') }
   scope :cached,     -> { remote.where.not(file_file_name: nil) }
 
   default_scope { uninlined.order(id: :asc) }