1
0
Fork 0

fixes 2065: optimisation (#2073)

* fixes 2065: optimisation

* Update peertube-socket.ts
This commit is contained in:
John Livingston 2019-08-23 09:05:30 +02:00 committed by Chocobozzz
parent d11c28a36b
commit 20ec03846d

View file

@ -39,8 +39,9 @@ class PeerTubeSocket {
if (!sockets) return
const notificationMessage = notification.toFormattedJSON()
for (const socket of sockets) {
socket.emit('new-notification', notification.toFormattedJSON())
socket.emit('new-notification', notificationMessage)
}
}