remove duplicate uploadVideo.originallyPublishedAt
authorJosh Morel <morel.josh@hotmail.com>
Wed, 13 Feb 2019 15:19:13 +0000 (10:19 -0500)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 13 Feb 2019 15:28:56 +0000 (16:28 +0100)
duplicate was appending as array to form-data

shared/utils/videos/videos.ts

index 5d43d9061f993edb115cd751f76ae99d0e2b5ec7..b3d24bc53dd136389c43b3ccbe124f43e920fd56 100644 (file)
@@ -350,9 +350,6 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
   if (attributes.licence !== undefined) {
     req.field('licence', attributes.licence.toString())
   }
-  if (attributes.originallyPublishedAt !== undefined) {
-    req.field('originallyPublishedAt', attributes.originallyPublishedAt)
-  }
 
   for (let i = 0; i < attributes.tags.length; i++) {
     req.field('tags[' + i + ']', attributes.tags[i])