mirror of
https://github.com/flarum/framework.git
synced 2025-01-30 03:49:46 +08:00
20 results, regardless of what's included
This commit is contained in:
parent
abc794c966
commit
d204ca87cf
|
@ -37,7 +37,7 @@ class Index extends Base
|
||||||
$key = $this->input('key');
|
$key = $this->input('key');
|
||||||
$start = $this->start();
|
$start = $this->start();
|
||||||
$include = $this->included(['startPost', 'lastPost', 'relevantPosts']);
|
$include = $this->included(['startPost', 'lastPost', 'relevantPosts']);
|
||||||
$count = $this->count($include ? 20 : 50, 30);
|
$count = $this->count(20, 50);
|
||||||
$sort = $this->sort(['', 'lastPost', 'replies', 'created']);
|
$sort = $this->sort(['', 'lastPost', 'replies', 'created']);
|
||||||
|
|
||||||
$relations = array_merge(['startUser', 'lastUser'], $include);
|
$relations = array_merge(['startUser', 'lastUser'], $include);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user