mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
remove more parseInts
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user