From 0aa75704a21091e41fa1f24c5700618f05192a2b Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Fri, 16 May 2014 20:57:16 +0200 Subject: [PATCH] Fixed tag autocompletion --- src/Controllers/TagController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Controllers/TagController.php b/src/Controllers/TagController.php index 63cf4882..531f3acf 100644 --- a/src/Controllers/TagController.php +++ b/src/Controllers/TagController.php @@ -23,8 +23,10 @@ class TagController $filter = InputHelper::get('search'); $filter .= ' order:popularity,desc'; + $job = new ListTagsJob(); + $job->getPager()->setPageSize(15); $ret = Api::run( - (new ListTagsJob)->setPageSize(15), + $job, [ JobArgs::ARG_QUERY => $filter, JobArgs::ARG_PAGE_NUMBER => 1,