]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-edit.model.ts
Support audio upload in client
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-edit.model.ts
index 1f633d427a4d0e0d08077eb1837384bd713f5919..67d8e7711d550da06e9dae5a24b3ca98b964b058 100644 (file)
@@ -85,6 +85,11 @@ export class VideoEdit implements VideoUpdate {
       const originallyPublishedAt = new Date(values['originallyPublishedAt'])
       this.originallyPublishedAt = originallyPublishedAt.toISOString()
     }
+
+    // Use the same file than the preview for the thumbnail
+    if (this.previewfile) {
+      this.thumbnailfile = this.previewfile
+    }
   }
 
   toFormPatch () {