about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-07-08 18:17:22 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-07-08 18:17:22 +0200
commit1e7187f2a8e0b9ffe4e7d6b06e9f70674c50471e (patch)
treee70a8df888e2231807870e401df11fc3935d3f3e /app/models/status.rb
parentef1524639776fe7d7be2d5c414fc98dd2410a5f4 (diff)
Fix Status.remote scope matching *all* statuses (#11265)
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 6f1e35e4a..23682c84b 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -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') }