exclude-other-silenced-accounts (#7528)
This commit is contained in:
1 parent
2374a00c10
commit
4bdab203ac
2 files changed
+2
-12
No files matched your search
@@ -384,7 +384,8 @@ class Status < ApplicationRecord
|
||||
|
||||
def account_silencing_filter(account)
|
||||
if account.silenced?
|
||||
including_silenced_accounts
|
||||
including_myself = left_outer_joins(:account).where(account_id: account.id).references(:accounts)
|
||||
excluding_silenced_accounts.or(including_myself)
|
||||
else
|
||||
excluding_silenced_accounts
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user