diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/video-state.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts index bf6dd4bc8..e420991cd 100644 --- a/server/lib/video-state.ts +++ b/server/lib/video-state.ts | |||
@@ -106,7 +106,9 @@ async function moveToPublishedState (video: MVideoFullLight, isNewVideo: boolean | |||
106 | // Live videos are always federated, so it's not a new video | 106 | // Live videos are always federated, so it's not a new video |
107 | await federateVideoIfNeeded(video, isNewVideo, transaction) | 107 | await federateVideoIfNeeded(video, isNewVideo, transaction) |
108 | 108 | ||
109 | if (isNewVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(video) | 109 | if (!isNewVideo) return |
110 | |||
111 | Notifier.Instance.notifyOnNewVideoIfNeeded(video) | ||
110 | 112 | ||
111 | if (previousState === VideoState.TO_TRANSCODE) { | 113 | if (previousState === VideoState.TO_TRANSCODE) { |
112 | Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video) | 114 | Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video) |