Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't notify when transcoding ends on manual run

Chocobozzz1da843eeac58
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts
index bf6dd4bc88..e420991cd3 100644
--- a/server/lib/video-state.ts
+++ b/server/lib/video-state.ts
@@ -106,7 +106,9 @@ async function moveToPublishedState (video: MVideoFullLight, isNewVideo: boolean
// Live videos are always federated, so it's not a new video
await federateVideoIfNeeded(video, isNewVideo, transaction)
- if (isNewVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(video)
+ if (!isNewVideo) return
+
+ Notifier.Instance.notifyOnNewVideoIfNeeded(video)
if (previousState === VideoState.TO_TRANSCODE) {
Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video)