Node.js based forum software built for the modern web
hide topic upvotes on category page when rep system is disabled
psychobunny212486d230f2
diff --git a/src/controllers/category.js b/src/controllers/category.jsindex 89f924e479..f3e90897cf 100644--- a/src/controllers/category.js+++ b/src/controllers/category.js@@ -135,6 +135,7 @@ categoryController.get = function (req, res, callback) {addTags(categoryData, res);categoryData['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;+ categoryData['reputation:disabled'] = parseInt(meta.config['reputation:disabled'], 10) === 1;categoryData.title = translator.escape(categoryData.name);pageCount = Math.max(1, Math.ceil(categoryData.topic_count / settings.topicsPerPage));categoryData.pagination = pagination.create(currentPage, pageCount, req.query);