fix: use query param sort over user setting if it's set

regression from 77ddfc642e
isekai-main
Barış Soner Uşaklı 2 years ago
parent 56ad381ff2
commit 9484ddc36f

@ -139,7 +139,7 @@ define('forum/category', [
after: after,
direction: direction,
query: params,
categoryTopicSort: config.categoryTopicSort,
categoryTopicSort: params.sort || config.categoryTopicSort,
}, function (data, done) {
hooks.fire('action:topics.loaded', { topics: data.topics });
callback(data, done);

@ -270,7 +270,7 @@ define('forum/topic/posts', [
after: after + (direction > 0 ? 1 : 0),
count: config.postsPerPage,
direction: direction,
topicPostSort: config.topicPostSort,
topicPostSort: utils.params().sort || config.topicPostSort,
}, function (data, done) {
indicatorEl.fadeOut();

Loading…
Cancel
Save