mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
parse post in Topics.reply not in Posts.create
makes importer faster if md plugin is enabled
This commit is contained in:
13
src/posts.js
13
src/posts.js
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user