Fix call to inefficient delete_matched
cache method in domain blocks (#28374)
This commit is contained in:
parent
f4b9c2ba40
commit
7d9b209fe8
11 changed files with 96 additions and 50 deletions
|
@ -25,11 +25,11 @@ class Api::V1::FollowRequestsController < Api::BaseController
|
|||
private
|
||||
|
||||
def account
|
||||
Account.find(params[:id])
|
||||
@account ||= Account.find(params[:id])
|
||||
end
|
||||
|
||||
def relationships(**options)
|
||||
AccountRelationshipsPresenter.new([params[:id]], current_user.account_id, **options)
|
||||
AccountRelationshipsPresenter.new([account], current_user.account_id, **options)
|
||||
end
|
||||
|
||||
def load_accounts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue