]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Import in private, and then set the chosen privacy
authorChocobozzz <me@florianbigard.com>
Tue, 19 Jan 2021 10:49:50 +0000 (11:49 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 19 Jan 2021 15:36:20 +0000 (16:36 +0100)
client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts
client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts
client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts

index a87d84d4822df82719b405580631c7c3eef1d6fe..67d055f066d3de1dad3d5ae994e2202f82e35cd8 100644 (file)
@@ -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,
index caa7af90a1053e63e5ab83a4ce856cb97d26a8c0..01087e5251799d430aea64c32dc4152cfff91e0e 100644 (file)
@@ -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
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