about summary refs log tree commit diff
path: root/app/controllers/api/v1/accounts/search_controller.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-02-27 17:06:25 -0800
committerReverite <github@reverite.sh>2019-02-27 17:06:25 -0800
commit715c552fe4c1b2d59bf1f281d77b6e2546bdb531 (patch)
tree44e93d767f1b7cda48ff24020faa62675dd6140c /app/controllers/api/v1/accounts/search_controller.rb
parent54e480ca0939ba737f5abdf4ee861cd63c025865 (diff)
parent76ed481aa7b67d624675cdaa85bac583853fd24d (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/controllers/api/v1/accounts/search_controller.rb')
-rw-r--r--app/controllers/api/v1/accounts/search_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/api/v1/accounts/search_controller.rb b/app/controllers/api/v1/accounts/search_controller.rb
index 91c9f1547..4217b527a 100644
--- a/app/controllers/api/v1/accounts/search_controller.rb
+++ b/app/controllers/api/v1/accounts/search_controller.rb
@@ -16,10 +16,11 @@ class Api::V1::Accounts::SearchController < Api::BaseController
   def account_search
     AccountSearchService.new.call(
       params[:q],
-      limit_param(DEFAULT_ACCOUNTS_LIMIT),
       current_account,
+      limit: limit_param(DEFAULT_ACCOUNTS_LIMIT),
       resolve: truthy_param?(:resolve),
-      following: truthy_param?(:following)
+      following: truthy_param?(:following),
+      offset: params[:offset]
     )
   end
 end