diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-03 11:38:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-03 14:49:15 +0200 |
commit | 26e3e98ff0e222a9fb9226938ac6902af77921bd (patch) | |
tree | 73d1c6f2524e380862d3365f12043fc319d40841 /server/lib/video-state.ts | |
parent | 86c5229b4d726202378ef46854383bcafca22310 (diff) | |
download | PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.tar.gz PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.tar.zst PeerTube-26e3e98ff0e222a9fb9226938ac6902af77921bd.zip |
Support live session in server
Diffstat (limited to 'server/lib/video-state.ts')
-rw-r--r-- | server/lib/video-state.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts index 7b207eb87..ae2725d65 100644 --- a/server/lib/video-state.ts +++ b/server/lib/video-state.ts | |||
@@ -126,12 +126,10 @@ async function moveToPublishedState (options: { | |||
126 | const { video, isNewVideo, transaction, previousVideoState } = options | 126 | const { video, isNewVideo, transaction, previousVideoState } = options |
127 | const previousState = previousVideoState ?? video.state | 127 | const previousState = previousVideoState ?? video.state |
128 | 128 | ||
129 | logger.info('Publishing video %s.', video.uuid, { previousState, tags: [ video.uuid ] }) | 129 | logger.info('Publishing video %s.', video.uuid, { isNewVideo, previousState, tags: [ video.uuid ] }) |
130 | 130 | ||
131 | await video.setNewState(VideoState.PUBLISHED, isNewVideo, transaction) | 131 | await video.setNewState(VideoState.PUBLISHED, isNewVideo, transaction) |
132 | 132 | ||
133 | // If the video was not published, we consider it is a new one for other instances | ||
134 | // Live videos are always federated, so it's not a new video | ||
135 | await federateVideoIfNeeded(video, isNewVideo, transaction) | 133 | await federateVideoIfNeeded(video, isNewVideo, transaction) |
136 | 134 | ||
137 | if (previousState === VideoState.TO_EDIT) { | 135 | if (previousState === VideoState.TO_EDIT) { |