mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	online count fixes for cluster
This commit is contained in:
		| @@ -76,11 +76,7 @@ User.banUser = function(uid, callback) { | ||||
| 				return callback(err); | ||||
| 			} | ||||
|  | ||||
| 			var sockets = websockets.getUserSockets(uid); | ||||
|  | ||||
| 			for(var i=0; i<sockets.length; ++i) { | ||||
| 				sockets[i].emit('event:banned'); | ||||
| 			} | ||||
| 			websockets.in('uid_' + uid).emit('event:banned'); | ||||
|  | ||||
| 			websockets.logoutUser(uid); | ||||
| 			callback(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user