From: Eugen Rochko Date: Fri, 17 Mar 2017 20:02:47 +0000 (+0100) Subject: Forgot to hook up API with the latest method X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=5cfc9c74872fff63f3ddf81de0baebfd50e2fc72;p=mastodon.git Forgot to hook up API with the latest method --- diff --git a/app/controllers/api/v1/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index 9c84e0a1b..51c948955 100644 --- a/app/controllers/api/v1/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -115,7 +115,7 @@ class Api::V1::AccountsController < ApiController end def search - @accounts = SearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true') + @accounts = SearchService.new.call(params[:q], limit_param(DEFAULT_ACCOUNTS_LIMIT), params[:resolve] == 'true', current_account) set_account_counters_maps(@accounts) unless @accounts.nil?