]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/peertube-socket.ts
Upgrade server dependencies
[github/Chocobozzz/PeerTube.git] / server / lib / peertube-socket.ts
index e27963e606b52d6ea6c4ade1272000aec5f50441..c91407a5938cc091b428ce0b888c8fc9ae76221e 100644 (file)
@@ -22,7 +22,7 @@ class PeerTubeSocket {
     io.of('/user-notifications')
       .use(authenticateSocket)
       .on('connection', socket => {
-        const userId = socket.handshake.query.user.id
+        const userId = socket.handshake.auth.user.id
 
         logger.debug('User %d connected on the notification system.', userId)