mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
merging #2077
This commit is contained in:
@@ -44,6 +44,13 @@ var async = require('async'),
|
||||
|
||||
db.sortedSetAdd('users:reputation', newreputation, postData.uid);
|
||||
|
||||
if (parseInt(meta.config['autoban:downvote'], 10) === 1 && newreputation < parseInt(meta.config['autoban:downvote:threshold'], 10)) {
|
||||
var adminUser = require('./socket.io/admin/user');
|
||||
adminUser.banUser(postData.uid, function() {
|
||||
require('winston').info('uid ' + uid + ' was banned for reaching ' + newreputation + ' reputation');
|
||||
});
|
||||
}
|
||||
|
||||
adjustPostVotes(pid, uid, type, unvote, function(err, votes) {
|
||||
postData.votes = votes;
|
||||
callback(err, {
|
||||
|
||||
Reference in New Issue
Block a user