ActivityPub-federated video streaming platform using P2P directly in your web browser
Merge branch 'feature/strong-model-types' into develop
Chocobozzz5c5e587307a2
diff --cc server/lib/peertube-socket.tsindex 17748fd181,1c7b091757..ad2bb4845d--- a/server/lib/peertube-socket.ts+++ b/server/lib/peertube-socket.ts@@@ -34,14 -32,12 +34,14 @@@ class PeerTubeSocket})}- sendNotification (userId: number, notification: UserNotificationModel) {+ sendNotification (userId: number, notification: UserNotificationModelForApi) {- const socket = this.userNotificationSockets[userId]+ const sockets = this.userNotificationSockets[userId]- if (!socket) return+ if (!sockets) return- socket.emit('new-notification', notification.toFormattedJSON())+ for (const socket of sockets) {+ socket.emit('new-notification', notification.toFormattedJSON())+ }}static get Instance () {