mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: #7636, use reputation threshold for post queue
This commit is contained in:
		| @@ -21,7 +21,7 @@ module.exports = function (Posts) { | |||||||
| 				user.getUserFields(uid, ['uid', 'reputation', 'postcount'], next); | 				user.getUserFields(uid, ['uid', 'reputation', 'postcount'], next); | ||||||
| 			}, | 			}, | ||||||
| 			function (userData, next) { | 			function (userData, next) { | ||||||
| 				const shouldQueue = meta.config.postQueue && (!userData.uid || userData.reputation < 0 || userData.postcount <= 0); | 				const shouldQueue = meta.config.postQueue && (!userData.uid || userData.reputation < meta.config.newbiePostDelayThreshold || userData.postcount <= 0); | ||||||
| 				plugins.fireHook('filter:post.shouldQueue', { | 				plugins.fireHook('filter:post.shouldQueue', { | ||||||
| 					shouldQueue: shouldQueue, | 					shouldQueue: shouldQueue, | ||||||
| 					uid: uid, | 					uid: uid, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user