mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-28 09:39:34 -05:00
Fix N+1 queries when rendering accounts on the admin collection page (#39738)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -51,7 +51,7 @@ module Admin
|
||||
end
|
||||
|
||||
def set_collection
|
||||
@collection = @account.collections.includes(accepted_collection_items: :account).find(params[:id])
|
||||
@collection = @account.collections.includes(accepted_collection_items: { account: [:account_stat, user: [:ips, :invite_request]] }).find(params[:id])
|
||||
end
|
||||
|
||||
def set_collections
|
||||
|
||||
Reference in New Issue
Block a user