Fix boosts of local users being filtered in account timelines (#27204)
This commit is contained in:
parent
4e55001e65
commit
ceb365c419
2 changed files with 20 additions and 2 deletions
|
@ -60,8 +60,12 @@ class AccountStatusesFilter
|
|||
.where(reblog_of_id: nil)
|
||||
.or(
|
||||
scope
|
||||
# This is basically `Status.not_domain_blocked_by_account(current_account)`
|
||||
# and `Status.not_excluded_by_account(current_account)` but on the
|
||||
# `reblog` association. Unfortunately, there seem to be no clean way
|
||||
# to re-use those scopes in our case.
|
||||
.where(reblog: { accounts: { domain: nil } }).or(scope.where.not(reblog: { accounts: { domain: current_account.excluded_from_timeline_domains } }))
|
||||
.where.not(reblog: { account_id: current_account.excluded_from_timeline_account_ids })
|
||||
.where.not(reblog: { accounts: { domain: current_account.excluded_from_timeline_domains } })
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue