Skip to content

Commit

Permalink
fix(tags): use default index sortmap (#3615)
Browse files Browse the repository at this point in the history
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
  • Loading branch information
SychO9 authored Aug 24, 2022
1 parent 7f2f3e3 commit 434c459
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions extensions/tags/src/Content/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,7 @@ public function __invoke(Document $document, Request $request)
*/
private function getSortMap()
{
return [
'latest' => '-lastPostedAt',
'top' => '-commentCount',
'newest' => '-createdAt',
'oldest' => 'createdAt'
];
return resolve('flarum.forum.discussions.sortmap');
}

/**
Expand Down

0 comments on commit 434c459

Please sign in to comment.