Revert "fix: make sort work with world filters"

This reverts commit cd8a91fe89.
This commit is contained in:
Julian Lam
2024-04-25 14:30:38 -04:00
parent ed84eed8a9
commit 7180819c21
2 changed files with 1 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ define('forum/world', ['topicList', 'sort', 'hooks', 'alerts', 'api'], function
app.enterRoom('world');
topicList.init('world');
sort.handleSort('categoryTopicSort', 'world' + (ajaxify.data.filter ? '/' + ajaxify.data.filter : ''));
sort.handleSort('categoryTopicSort', 'world');
handleIgnoreWatch(-1);

View File

@@ -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({