mirror of
https://github.com/flarum/framework.git
synced 2025-04-26 06:34:06 +08:00
fix(tags): use default index sortmap (#3615)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
This commit is contained in:
parent
7f2f3e34f5
commit
434c459246
@ -109,12 +109,7 @@ class Tag
|
|||||||
*/
|
*/
|
||||||
private function getSortMap()
|
private function getSortMap()
|
||||||
{
|
{
|
||||||
return [
|
return resolve('flarum.forum.discussions.sortmap');
|
||||||
'latest' => '-lastPostedAt',
|
|
||||||
'top' => '-commentCount',
|
|
||||||
'newest' => '-createdAt',
|
|
||||||
'oldest' => 'createdAt'
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user