From d204ca87cfc3ad2779cbfddeff3a5cbd8004b124 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 16 Jan 2015 17:16:37 +1030 Subject: [PATCH] 20 results, regardless of what's included --- src/Flarum/Api/Actions/Discussions/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Flarum/Api/Actions/Discussions/Index.php b/src/Flarum/Api/Actions/Discussions/Index.php index e21db4a39..ca273b2d6 100644 --- a/src/Flarum/Api/Actions/Discussions/Index.php +++ b/src/Flarum/Api/Actions/Discussions/Index.php @@ -37,7 +37,7 @@ class Index extends Base $key = $this->input('key'); $start = $this->start(); $include = $this->included(['startPost', 'lastPost', 'relevantPosts']); - $count = $this->count($include ? 20 : 50, 30); + $count = $this->count(20, 50); $sort = $this->sort(['', 'lastPost', 'replies', 'created']); $relations = array_merge(['startUser', 'lastUser'], $include);