mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	removed users:online set
using websockets.getConnectedClients directly
This commit is contained in:
		| @@ -15,7 +15,7 @@ usersController.getOnlineUsers = function(req, res, next) { | ||||
| 			user.getUsersFromSet('users:online', 0, 49, next); | ||||
| 		}, | ||||
| 		count: function(next) { | ||||
| 			db.sortedSetCard('users:online', next); | ||||
| 			next(null, websockets.getConnectedClients().length); | ||||
| 		}, | ||||
| 		isAdministrator: function(next) { | ||||
| 			user.isAdministrator(uid, next); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user