]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-import.ts
Fix video description when importing by url
[github/Chocobozzz/PeerTube.git] / server / models / video / video-import.ts
index 9d1f783c75e3a91d6cd647544ec13d89b15e2b0e..8d442b3f849940526fe5207afd157364f772dada 100644 (file)
@@ -146,12 +146,11 @@ export class VideoImportModel extends Model<VideoImportModel> {
 
   toFormattedJSON (): VideoImport {
     const videoFormatOptions = {
+      completeDescription: true,
       additionalAttributes: { state: true, waitTranscoding: true, scheduledUpdate: true }
     }
     const video = this.Video
-      ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), {
-        tags: this.Video.Tags.map(t => t.name)
-      })
+      ? Object.assign(this.Video.toFormattedJSON(videoFormatOptions), { tags: this.Video.Tags.map(t => t.name) })
       : undefined
 
     return {