projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74c9be
)
remove duplicate uploadVideo.originallyPublishedAt
author
Josh Morel
<morel.josh@hotmail.com>
Wed, 13 Feb 2019 15:19:13 +0000
(10:19 -0500)
committer
Chocobozzz
<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
patch
|
blob
|
history
diff --git
a/shared/utils/videos/videos.ts
b/shared/utils/videos/videos.ts
index 5d43d9061f993edb115cd751f76ae99d0e2b5ec7..b3d24bc53dd136389c43b3ccbe124f43e920fd56 100644
(file)
--- a/
shared/utils/videos/videos.ts
+++ b/
shared/utils/videos/videos.ts
@@
-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])