Merge tag 'v2.9.3' into instance_only_statuses

This commit is contained in:
Renato "Lond" Cerqueira
2019-08-10 09:20:44 +02:00
98 changed files with 852 additions and 270 deletions

View File

@ -78,7 +78,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') }