once more for good measure!

v1.18.x
Julian Lam 8 years ago
parent 07ac7dce84
commit babafde726

@ -156,9 +156,9 @@ Flags.validate = function (payload, callback) {
return callback(err);
}
if (data.target.deleted) {
if (parseInt(data.target.deleted, 10)) {
return callback(new Error('[[error:post-deleted]]'));
} else if (data.reporter.banned) {
} else if (parseInt(data.reporter.banned, 10)) {
return callback(new Error('[[error:user-banned]]'));
}

Loading…
Cancel
Save