Fix going live with a protected password

This commit is contained in:
Chocobozzz 2024-09-12 10:52:38 +02:00
parent da6d0bfe88
commit 520a6a652d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 1 deletions

View File

@ -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,