From fc00586f0e3a173cb73f439d16d7b435fdd2f427 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 12 May 2014 14:53:53 -0400 Subject: [PATCH] 0 disables flags for ban --- src/socket.io/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js index 865c26a769..30d7f018c1 100644 --- a/src/socket.io/posts.js +++ b/src/socket.io/posts.js @@ -308,7 +308,7 @@ SocketPosts.flag = function(socket, pid, callback) { return next(err); } - if (count >= (meta.config.flagsForBan || 3)) { + if (count >= (meta.config.flagsForBan || 3) && parseInt(meta.config.flagsForBan, 10) !== 0) { var adminUser = require('./admin/user'); adminUser.banUser(post.uid, next); return;