diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-24 23:56:06 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:15 -0500 |
commit | 9bd0bb4e260d1dee975f4b4e50ca52c04e7c317f (patch) | |
tree | 405ba30326d276da5146c89d66852afc7415a2a7 /app/models/media_attachment.rb | |
parent | 9c75c01decf1fbdb32350998c39a9d7fdeb00951 (diff) |
[UI, Accessibiity] Make dashed nest level indicators optional
Diffstat (limited to 'app/models/media_attachment.rb')
-rw-r--r-- | app/models/media_attachment.rb | 4 |
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) } |