From d487a997c80fafe6067016c6cd8e8afd6141baa3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Jan 2021 11:49:50 +0100 Subject: Import in private, and then set the chosen privacy --- .../+video-edit/video-add-components/video-go-live.component.ts | 4 +++- .../video-add-components/video-import-torrent.component.ts | 3 ++- .../+video-edit/video-add-components/video-import-url.component.ts | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'client/src/app/+videos') 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 a87d84d48..67d055f06 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 @@ -55,8 +55,10 @@ export class VideoGoLiveComponent extends VideoSend implements OnInit, CanCompon } goLive () { + const name = 'Live' + const video: LiveVideoCreate = { - name: 'Live', + name, privacy: VideoPrivacy.PRIVATE, nsfw: this.serverConfig.instance.isNSFW, waitTranscoding: true, diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts index caa7af90a..01087e525 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts @@ -76,7 +76,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca this.isImportingVideo = true const videoUpdate: VideoUpdate = { - privacy: this.firstStepPrivacyId, + privacy: VideoPrivacy.PRIVATE, waitTranscoding: false, commentsEnabled: true, downloadEnabled: true, @@ -95,6 +95,7 @@ export class VideoImportTorrentComponent extends VideoSend implements OnInit, Ca this.video = new VideoEdit(Object.assign(res.video, { commentsEnabled: videoUpdate.commentsEnabled, downloadEnabled: videoUpdate.downloadEnabled, + privacy: { id: this.firstStepPrivacyId }, support: null, thumbnailUrl: null, previewUrl: null diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts index 5ca753eaf..c447c179d 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts @@ -63,7 +63,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom this.isImportingVideo = true const videoUpdate: VideoUpdate = { - privacy: this.firstStepPrivacyId, + privacy: VideoPrivacy.PRIVATE, waitTranscoding: false, commentsEnabled: true, downloadEnabled: true, @@ -103,6 +103,7 @@ export class VideoImportUrlComponent extends VideoSend implements OnInit, CanCom this.video = new VideoEdit(Object.assign(video, { commentsEnabled: videoUpdate.commentsEnabled, downloadEnabled: videoUpdate.downloadEnabled, + privacy: { id: this.firstStepPrivacyId }, support: null, thumbnailUrl, previewUrl -- cgit v1.2.3