1
0
Fork 0
forked from gitea/nas

Revertしたコミットを復元

This commit is contained in:
KMY 2024-03-19 09:25:17 +09:00
parent 76598bd542
commit b3c2e47ea8
3 changed files with 16 additions and 24 deletions

View file

@ -1,10 +1,5 @@
# frozen_string_literal: true
# Reverted this commit.temporarily because load issues.
# Whenever a manual merge occurs, be sure to check the following commits.
# Hash: ee8d0b94473df357677cd1f82581251ce0423c01
# Message: Fix follow suggestions potentially including silenced or blocked accounts (#29306)
class AccountSuggestions::Source
DEFAULT_LIMIT = 10
@ -17,6 +12,8 @@ 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)