From 434c459246572a356a5a55b4ad841101ece43089 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Wed, 24 Aug 2022 12:17:00 +0100 Subject: [PATCH] fix(tags): use default index sortmap (#3615) Signed-off-by: Sami Mazouz --- extensions/tags/src/Content/Tag.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/tags/src/Content/Tag.php b/extensions/tags/src/Content/Tag.php index 7fde641f8..7e6e54890 100644 --- a/extensions/tags/src/Content/Tag.php +++ b/extensions/tags/src/Content/Tag.php @@ -109,12 +109,7 @@ class Tag */ private function getSortMap() { - return [ - 'latest' => '-lastPostedAt', - 'top' => '-commentCount', - 'newest' => '-createdAt', - 'oldest' => 'createdAt' - ]; + return resolve('flarum.forum.discussions.sortmap'); } /**