diff options
author | Josh Morel <morel.josh@hotmail.com> | 2019-02-13 10:19:13 -0500 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-02-13 16:28:56 +0100 |
commit | 7f40ce53243be994a3cf093e07eb1d460f696b10 (patch) | |
tree | ffc55bd3e7bb463bc0a9a927f0080daf8044ffa0 /shared/utils/videos/videos.ts | |
parent | c74c9be934fa1584edf6f4f7a41f00c4d3f2a8b3 (diff) | |
download | PeerTube-7f40ce53243be994a3cf093e07eb1d460f696b10.tar.gz PeerTube-7f40ce53243be994a3cf093e07eb1d460f696b10.tar.zst PeerTube-7f40ce53243be994a3cf093e07eb1d460f696b10.zip |
remove duplicate uploadVideo.originallyPublishedAt
duplicate was appending as array to form-data
Diffstat (limited to 'shared/utils/videos/videos.ts')
-rw-r--r-- | shared/utils/videos/videos.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/shared/utils/videos/videos.ts b/shared/utils/videos/videos.ts index 5d43d9061..b3d24bc53 100644 --- a/shared/utils/videos/videos.ts +++ b/shared/utils/videos/videos.ts | |||
@@ -350,9 +350,6 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg | |||
350 | if (attributes.licence !== undefined) { | 350 | if (attributes.licence !== undefined) { |
351 | req.field('licence', attributes.licence.toString()) | 351 | req.field('licence', attributes.licence.toString()) |
352 | } | 352 | } |
353 | if (attributes.originallyPublishedAt !== undefined) { | ||
354 | req.field('originallyPublishedAt', attributes.originallyPublishedAt) | ||
355 | } | ||
356 | 353 | ||
357 | for (let i = 0; i < attributes.tags.length; i++) { | 354 | for (let i = 0; i < attributes.tags.length; i++) { |
358 | req.field('tags[' + i + ']', attributes.tags[i]) | 355 | req.field('tags[' + i + ']', attributes.tags[i]) |