mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	Fixes bug where if post edit was called without a title, NodeBB would crash
This commit is contained in:
		| @@ -86,7 +86,7 @@ module.exports = function(Posts) { | ||||
|  | ||||
| 	function editMainPost(data, postData, callback) { | ||||
| 		var tid = postData.tid; | ||||
| 		var title = data.title.trim(); | ||||
| 		var title = data.title ? data.title.trim() : ''; | ||||
|  | ||||
| 		async.parallel({ | ||||
| 			topic: function(next) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user