mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
dont join online_users and uid_ if user does not exist
This commit is contained in:
@@ -79,7 +79,7 @@ function onConnect(socket) {
|
||||
if (err) {
|
||||
return winston.error(err);
|
||||
}
|
||||
if (socket.uid) {
|
||||
if (socket.uid && exists) {
|
||||
socket.join('uid_' + socket.uid);
|
||||
socket.join('online_users');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user