Skip to content

Commit

Permalink
Fix Status.remote scope matching *all* statuses (mastodon#11265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Jul 14, 2019
1 parent c40d47b commit 9f67e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,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') }
Expand Down

0 comments on commit 9f67e3b

Please sign in to comment.