aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/videos/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/videos/videos.ts')
-rw-r--r--shared/extra-utils/videos/videos.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index debaaf9a7..c78563232 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -355,7 +355,6 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
355 .set('Accept', 'application/json') 355 .set('Accept', 'application/json')
356 .set('Authorization', 'Bearer ' + accessToken) 356 .set('Authorization', 'Bearer ' + accessToken)
357 .field('name', attributes.name) 357 .field('name', attributes.name)
358 .field('support', attributes.support)
359 .field('nsfw', JSON.stringify(attributes.nsfw)) 358 .field('nsfw', JSON.stringify(attributes.nsfw))
360 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled)) 359 .field('commentsEnabled', JSON.stringify(attributes.commentsEnabled))
361 .field('downloadEnabled', JSON.stringify(attributes.downloadEnabled)) 360 .field('downloadEnabled', JSON.stringify(attributes.downloadEnabled))
@@ -363,6 +362,10 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
363 .field('privacy', attributes.privacy.toString()) 362 .field('privacy', attributes.privacy.toString())
364 .field('channelId', attributes.channelId) 363 .field('channelId', attributes.channelId)
365 364
365 if (attributes.support !== undefined) {
366 req.field('support', attributes.support)
367 }
368
366 if (attributes.description !== undefined) { 369 if (attributes.description !== undefined) {
367 req.field('description', attributes.description) 370 req.field('description', attributes.description)
368 } 371 }