Skip to content
Snippets Groups Projects
Commit dd6ede55 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #4834 - Adjust Status#local and Status#remote scopes (#4839)

parent 6859d4c0
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,8 @@ class Status < ApplicationRecord
default_scope { recent }
scope :recent, -> { reorder(id: :desc) }
scope :remote, -> { where.not(uri: nil) }
scope :local, -> { where(uri: nil) }
scope :remote, -> { where(local: false).or(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') }
scope :without_reblogs, -> { where('statuses.reblog_of_id IS NULL') }
......
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