mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +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