diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-20 13:20:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 03:20:56 +0900 |
commit | 9909b4b653d2f1cef662211a4b8e0b02cbb42fc1 (patch) | |
tree | c091455f619ef56ae4fc44100fd0dfb4890f6d76 /app/models/status.rb | |
parent | d3b4d4d4f3ccee19f272c66e7c9acd803661e65b (diff) |
Autofix Rubocop Rails/WhereEquals (#23759)
Diffstat (limited to 'app/models/status.rb')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 2eb47d72c..e7ea191a8 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -95,7 +95,7 @@ class Status < ApplicationRecord scope :local, -> { where(local: true).or(where(uri: nil)) } scope :with_accounts, ->(ids) { where(id: ids).includes(:account) } scope :without_replies, -> { where('statuses.reply = FALSE OR statuses.in_reply_to_account_id = statuses.account_id') } - scope :without_reblogs, -> { where('statuses.reblog_of_id IS NULL') } + scope :without_reblogs, -> { where(statuses: { reblog_of_id: nil }) } scope :with_public_visibility, -> { where(visibility: :public) } scope :tagged_with, ->(tag_ids) { joins(:statuses_tags).where(statuses_tags: { tag_id: tag_ids }) } scope :excluding_silenced_accounts, -> { left_outer_joins(:account).where(accounts: { silenced_at: nil }) } |