mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
missing radix
This commit is contained in:
@@ -314,7 +314,7 @@ SocketPosts.flag = function(socket, pid, callback) {
|
||||
posts.getPostFields(pid, ['tid', 'uid', 'content', 'deleted'], next);
|
||||
},
|
||||
function(postData, next) {
|
||||
if (parseInt(postData.deleted) === 1) {
|
||||
if (parseInt(postData.deleted, 10) === 1) {
|
||||
return next(new Error('[[error:post-deleted]]'));
|
||||
}
|
||||
post = postData;
|
||||
|
||||
Reference in New Issue
Block a user