Node.js based forum software built for the modern web
fix: dont allow sorting pinned topics on recent
Barış Soner Uşaklıb955fd363d25
diff --git a/public/src/client/category/tools.js b/public/src/client/category/tools.jsindex 7159466f6a..74e7111f7f 100644--- a/public/src/client/category/tools.js+++ b/public/src/client/category/tools.js@@ -263,7 +263,7 @@ define('forum/category/tools', [}function handlePinnedTopicSort() {- if (!ajaxify.data.topics) {+ if (!ajaxify.data.topics || !ajaxify.data.template.category) {return;}var numPinned = ajaxify.data.topics.reduce(function (memo, topic) {