Node.js based forum software built for the modern web
Revert "fix: make sort work with world filters"
Julian Lam7180819c21a8
diff --git a/public/src/client/world.js b/public/src/client/world.jsindex c9d1d14957..8ab38a02c1 100644--- a/public/src/client/world.js+++ b/public/src/client/world.js@@ -7,7 +7,7 @@ define('forum/world', ['topicList', 'sort', 'hooks', 'alerts', 'api'], functionapp.enterRoom('world');topicList.init('world');- sort.handleSort('categoryTopicSort', 'world' + (ajaxify.data.filter ? '/' + ajaxify.data.filter : ''));+ sort.handleSort('categoryTopicSort', 'world');handleIgnoreWatch(-1);diff --git a/src/controllers/activitypub/topics.js b/src/controllers/activitypub/topics.jsindex 0ab855bd74..87afe4862c 100644--- a/src/controllers/activitypub/topics.js+++ b/src/controllers/activitypub/topics.js@@ -90,8 +90,6 @@ controller.list = async function (req, res) {}}- data.filter = req.params.filter || undefined;-const pageCount = Math.max(1, Math.ceil(data.topicCount / topicsPerPage));data.pagination = pagination.create(page, pageCount, req.query);helpers.addLinkTags({