]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts
Import in private, and then set the chosen privacy
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / video-add-components / video-import-url.component.ts
index 5ca753eaf81ab0cc5c0e8edf748e6f3fc01a3f95..c447c179d35a575cba30a3ed61092832e96b72c8 100644 (file)
@@ -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