Skip to content
Snippets Groups Projects
Commit 1e7187f2 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Fix Status.remote scope matching *all* statuses (#11265)

parent ef152463
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ class Status < ApplicationRecord
default_scope { recent }
scope :recent, -> { reorder(id: :desc) }
scope :remote, -> { where(local: false).or(where.not(uri: nil)) }
scope :remote, -> { where(local: false).where.not(uri: nil) }
scope :local, -> { where(local: true).or(where(uri: nil)) }
scope :without_replies, -> { where('statuses.reply = FALSE OR statuses.in_reply_to_account_id = statuses.account_id') }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment