X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Fvideo-state.ts;h=ae2725d650c6f2c90a7d6cdacc3133fe6642786f;hb=ccd62a45024d90c004d0d38737fef055b3fe22b7;hp=f75f8170457ea942ca0bed8df473c8853e2990f9;hpb=1808a1f8e4b7b102823492a2007a46929aebf189;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts index f75f81704..ae2725d65 100644 --- a/server/lib/video-state.ts +++ b/server/lib/video-state.ts @@ -126,16 +126,14 @@ async function moveToPublishedState (options: { const { video, isNewVideo, transaction, previousVideoState } = options const previousState = previousVideoState ?? video.state - logger.info('Publishing video %s.', video.uuid, { previousState, tags: [ video.uuid ] }) + logger.info('Publishing video %s.', video.uuid, { isNewVideo, previousState, tags: [ video.uuid ] }) await video.setNewState(VideoState.PUBLISHED, isNewVideo, transaction) - // If the video was not published, we consider it is a new one for other instances - // Live videos are always federated, so it's not a new video await federateVideoIfNeeded(video, isNewVideo, transaction) if (previousState === VideoState.TO_EDIT) { - Notifier.Instance.notifyOfFinishedVideoEdition(video) + Notifier.Instance.notifyOfFinishedVideoStudioEdition(video) return }