mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-04 13:37:38 +02:00
removing incorrect parseInt
This commit is contained in:
@@ -156,7 +156,7 @@ Flags.validate = function (payload, callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
if (parseInt(data.target.deleted, 10)) {
|
||||
if (data.target.deleted) {
|
||||
return callback(new Error('[[error:post-deleted]]'));
|
||||
} else if (parseInt(data.reporter.banned, 10)) {
|
||||
return callback(new Error('[[error:user-banned]]'));
|
||||
|
||||
Reference in New Issue
Block a user