diff --git a/src/controllers/topics.js b/src/controllers/topics.js index 07f5263116..75cd9c2565 100644 --- a/src/controllers/topics.js +++ b/src/controllers/topics.js @@ -172,7 +172,7 @@ topicsController.get = function(req, res, next) { } data.privileges = userPrivileges; - data.votingEnabled = meta.config['votingEnabled'] ? meta.config['votingEnabled'] : true; + data['reputation:disabled'] = meta.config['reputation:disabled'] === '1' ? true : false; var topic_url = tid + (req.params.slug ? '/' + req.params.slug : ''); var queryString = qs.stringify(req.query); diff --git a/src/favourites.js b/src/favourites.js index 8a032cdcdc..622606e2fc 100644 --- a/src/favourites.js +++ b/src/favourites.js @@ -98,7 +98,7 @@ var async = require('async'), } Favourites.upvote = function(pid, uid, callback) { - if (meta.config['votingEnabled'] === false) { + if (meta.config['reputation:disabled'] === false) { return callback(false); } @@ -106,7 +106,7 @@ var async = require('async'), }; Favourites.downvote = function(pid, uid, callback) { - if (meta.config['votingEnabled'] === false) { + if (meta.config['reputation:disabled'] === false) { return callback(false); }