mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	revert: change toPid truthy
This commit is contained in:
		| @@ -24,7 +24,7 @@ module.exports = function (Posts) { | ||||
| 			throw new Error('[[error:invalid-uid]]'); | ||||
| 		} | ||||
|  | ||||
| 		if (data.hasOwnProperty('toPid') && !utils.isNumber(data.toPid)) { | ||||
| 		if (data.toPid && !utils.isNumber(data.toPid)) { | ||||
| 			throw new Error('[[error:invalid-pid]]'); | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user