remove more parseInts

This commit is contained in:
Barış Soner Uşaklı
2018-10-21 19:33:46 -04:00
parent 9aa39c91a3
commit ac39112271
13 changed files with 75 additions and 95 deletions

View File

@@ -22,6 +22,9 @@ module.exports = function (Posts) {
};
Posts.parsePost = function (postData, callback) {
if (!postData) {
return setImmediate(callback, null, postData);
}
postData.content = String(postData.content || '');
var cache = require('./cache');
if (postData.pid && cache.has(String(postData.pid))) {