parse post in Topics.reply not in Posts.create

makes importer faster if md plugin is enabled
This commit is contained in:
barisusakli
2014-10-07 20:36:44 -04:00
parent e0fd24c087
commit 712bd3938f
2 changed files with 6 additions and 11 deletions

View File

@@ -96,17 +96,8 @@ var async = require('async'),
});
},
function(postData, next) {
postTools.parse(postData.content, function(err, content) {
if (err) {
return next(err);
}
plugins.fireHook('action:post.save', postData);
postData.content = content;
next(null, postData);
});
plugins.fireHook('action:post.save', postData);
next(null, postData);
}
], callback);
};