From 212486d230f2e9114bb2624df0fa4bea6f77cfbb Mon Sep 17 00:00:00 2001 From: psychobunny Date: Mon, 29 Jan 2018 16:41:34 -0500 Subject: [PATCH] hide topic upvotes on category page when rep system is disabled --- src/controllers/category.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/category.js b/src/controllers/category.js index 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);