remove parseInts

This commit is contained in:
Barış Soner Uşaklı
2018-10-25 17:02:59 -04:00
parent aca50f1fe1
commit f3a679e268
42 changed files with 103 additions and 137 deletions

View File

@@ -84,7 +84,7 @@ SocketPosts.getRawPost = function (socket, pid, callback) {
posts.getPostFields(pid, ['content', 'deleted'], next);
},
function (postData, next) {
if (parseInt(postData.deleted, 10) === 1) {
if (postData.deleted) {
return next(new Error('[[error:no-post]]'));
}
next(null, postData.content);