mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Fix public timeline query
This commit is contained in:
parent
36921be9aa
commit
0320ea4b85
1 changed files with 1 additions and 1 deletions
|
@ -126,8 +126,8 @@ class Status < ApplicationRecord
|
|||
query
|
||||
.joins('LEFT OUTER JOIN statuses AS parents ON statuses.in_reply_to_id = parents.id')
|
||||
.joins('LEFT OUTER JOIN statuses AS reblogs ON statuses.reblog_of_id = reblogs.id')
|
||||
.where('parents.account_id NOT IN (?)', blocked)
|
||||
.where('statuses.account_id NOT IN (?)', blocked)
|
||||
.where('(parents.id IS NULL OR parents.account_id NOT IN (?))', blocked)
|
||||
.where('(reblogs.id IS NULL OR reblogs.account_id NOT IN (?))', blocked)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue