mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 23:40:38 +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) {
|
if (err) {
|
||||||
return winston.error(err);
|
return winston.error(err);
|
||||||
}
|
}
|
||||||
if (socket.uid) {
|
if (socket.uid && exists) {
|
||||||
socket.join('uid_' + socket.uid);
|
socket.join('uid_' + socket.uid);
|
||||||
socket.join('online_users');
|
socket.join('online_users');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user