aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/utils/videos/videos.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/utils/videos/videos.ts b/shared/utils/videos/videos.ts
index 16ecbfe84..92dadfb69 100644
--- a/shared/utils/videos/videos.ts
+++ b/shared/utils/videos/videos.ts
@@ -42,6 +42,7 @@ type VideoAttributes = {
42 updateAt: string 42 updateAt: string
43 privacy?: VideoPrivacy 43 privacy?: VideoPrivacy
44 } 44 }
45 originallyPublishedAt?: string
45} 46}
46 47
47function getVideoCategories (url: string) { 48function getVideoCategories (url: string) {
@@ -373,6 +374,10 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg
373 } 374 }
374 } 375 }
375 376
377 if (attributes.originallyPublishedAt !== undefined) {
378 req.field('originallyPublishedAt', attributes.originallyPublishedAt)
379 }
380
376 return req.attach('videofile', buildAbsoluteFixturePath(attributes.fixture)) 381 return req.attach('videofile', buildAbsoluteFixturePath(attributes.fixture))
377 .expect(specialStatus) 382 .expect(specialStatus)
378} 383}