mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	| @@ -52,13 +52,17 @@ module.exports = function(Posts) { | ||||
| 					postData.ip = data.ip; | ||||
| 				} | ||||
|  | ||||
| 				if (parseInt(uid, 10) === 0 && data.handle) { | ||||
| 				if (data.handle && !parseInt(uid, 10)) { | ||||
| 					postData.handle = data.handle; | ||||
| 				} | ||||
|  | ||||
| 				plugins.fireHook('filter:post.save', postData, next); | ||||
| 			}, | ||||
| 			function(postData, next) { | ||||
| 				plugins.fireHook('filter:post.create', {post: postData, data: data}, next); | ||||
| 			}, | ||||
| 			function(data, next) { | ||||
| 				postData = data.post; | ||||
| 				db.setObject('post:' + postData.pid, postData, next); | ||||
| 			}, | ||||
| 			function(next) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user