ActivityPub-federated video streaming platform using P2P directly in your web browser
fixes 2065: optimisation (#2073)
John Livingston20ec03846ddb
diff --git a/server/lib/peertube-socket.ts b/server/lib/peertube-socket.tsindex ad2bb4845d..26ced351f3 100644--- a/server/lib/peertube-socket.ts+++ b/server/lib/peertube-socket.ts@@ -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)}}