about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorErin <sylphofelectricity@gmail.com>2017-12-10 19:41:33 -0600
committerErin <sylphofelectricity@gmail.com>2017-12-10 20:35:42 -0600
commit24f36ca9124353fdc3430c48b4afbb759276739d (patch)
tree1c43900580364773055c1df748cea4a9976babd5 /app/models/status.rb
parentf080a9fac777e446554c39120c899732eec47b6f (diff)
Status#not_local_only scope should match nils too
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 6f7a8c82d..920c255d7 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -75,7 +75,7 @@ class Status < ApplicationRecord
   scope :not_excluded_by_account, ->(account) { where.not(account_id: account.excluded_from_timeline_account_ids) }
   scope :not_domain_blocked_by_account, ->(account) { account.excluded_from_timeline_domains.blank? ? left_outer_joins(:account) : left_outer_joins(:account).where('accounts.domain IS NULL OR accounts.domain NOT IN (?)', account.excluded_from_timeline_domains) }
 
-  scope :not_local_only, -> { where(local_only: false) }
+  scope :not_local_only, -> { where(local_only: [false, nil]) }
 
   cache_associated :account, :application, :media_attachments, :tags, :stream_entry, mentions: :account, reblog: [:account, :application, :stream_entry, :tags, :media_attachments, mentions: :account], thread: :account