mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
Ability to enable/disable the upvote/downvote system, closes #1672
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user