mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-02 20:59:56 +01:00
once more for good measure!
This commit is contained in:
@@ -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]]'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user