1
0
Fork 0
forked from gitea/nas

Revert "Fix follow suggestions potentially including silenced or blocked accounts (#29306)"

This reverts commit ee8d0b9447.
This commit is contained in:
KMY 2024-03-07 08:16:54 +09:00
parent 53c2aa797b
commit 2271e6d9cb
5 changed files with 34 additions and 107 deletions

View file

@ -12,8 +12,6 @@ class AccountSuggestions::Source
def base_account_scope(account)
Account
.searchable
.where(discoverable: true)
.without_silenced
.where.not(follows_sql, id: account.id)
.where.not(follow_requests_sql, id: account.id)
.not_excluded_by_account(account)