0
0
Fork 0

Eager loading fixes for api/ controllers (#28848)

This commit is contained in:
Matt Jankowski 2024-01-23 06:41:54 -05:00 committed by GitHub
parent ceade78182
commit c0e8e457ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 14 additions and 14 deletions

View file

@ -30,7 +30,7 @@ class Api::V1::Accounts::FollowerAccountsController < Api::BaseController
end
def default_accounts
Account.includes(:active_relationships, :account_stat).references(:active_relationships)
Account.includes(:active_relationships, :account_stat, :user).references(:active_relationships)
end
def paginated_follows

View file

@ -30,7 +30,7 @@ class Api::V1::Accounts::FollowingAccountsController < Api::BaseController
end
def default_accounts
Account.includes(:passive_relationships, :account_stat).references(:passive_relationships)
Account.includes(:passive_relationships, :account_stat, :user).references(:passive_relationships)
end
def paginated_follows