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

@ -51,8 +51,7 @@ class AccountSuggestions::SimilarProfilesSource < AccountSuggestions::Source
recently_followed_account_ids = account.active_relationships.recent.limit(5).pluck(:target_account_id)
if Chewy.enabled? && !recently_followed_account_ids.empty?
ids_from_es = QueryBuilder.new(recently_followed_account_ids, account).build.limit(limit).hits.pluck('_id').map(&:to_i)
base_account_scope(account).where(id: ids_from_es).pluck(:id).zip([key].cycle)
QueryBuilder.new(recently_followed_account_ids, account).build.limit(limit).hits.pluck('_id').map(&:to_i).zip([key].cycle)
else
[]
end