@ -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]]'));