From 520a6a652dcb478222210f4af9d0e69c006ff02e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 12 Sep 2024 10:52:38 +0200 Subject: [PATCH] Fix going live with a protected password --- .../video-add-components/video-go-live.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts index 266ea96ab..3246be2be 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts @@ -106,7 +106,12 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, AfterView const video: LiveVideoCreate = { name, - privacy: this.firstStepPrivacyId, + + // Password privacy needs a password that will be set in the next step + privacy: this.firstStepPrivacyId === VideoPrivacy.PASSWORD_PROTECTED + ? VideoPrivacy.PRIVATE + : this.highestPrivacy, + nsfw: this.serverConfig.instance.isNSFW, waitTranscoding: true, permanentLive: this.firstStepPermanentLive,