1
0
mirror of https://github.com/flarum/core.git synced 2025-01-18 06:38:25 +01:00

20 results, regardless of what's included

This commit is contained in:
Toby Zerner 2015-01-16 17:16:37 +10:30
parent abc794c966
commit d204ca87cf

View File

@ -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);