diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/videos.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts index cb462e258..8545e5bad 100644 --- a/server/lib/activitypub/videos.ts +++ b/server/lib/activitypub/videos.ts | |||
@@ -461,8 +461,13 @@ async function updateVideoFromAP (options: { | |||
461 | transaction: undefined | 461 | transaction: undefined |
462 | }) | 462 | }) |
463 | 463 | ||
464 | if (wasPrivateVideo || wasUnlistedVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoUpdated) // Notify our users? | 464 | // Notify our users? |
465 | if (videoUpdated.isLive) PeerTubeSocket.Instance.sendVideoLiveNewState(videoUpdated) | 465 | if (wasPrivateVideo || wasUnlistedVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoUpdated) |
466 | |||
467 | if (videoUpdated.isLive) { | ||
468 | PeerTubeSocket.Instance.sendVideoLiveNewState(videoUpdated) | ||
469 | PeerTubeSocket.Instance.sendVideoViewsUpdate(videoUpdated) | ||
470 | } | ||
466 | 471 | ||
467 | logger.info('Remote video with uuid %s updated', videoObject.uuid) | 472 | logger.info('Remote video with uuid %s updated', videoObject.uuid) |
468 | 473 | ||