aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils')
-rw-r--r--shared/extra-utils/videos/videos.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts
index 392eddcc5..110552c77 100644
--- a/shared/extra-utils/videos/videos.ts
+++ b/shared/extra-utils/videos/videos.ts
@@ -641,10 +641,12 @@ async function uploadVideoAndGetId (options: {
641 nsfw?: boolean 641 nsfw?: boolean
642 privacy?: VideoPrivacy 642 privacy?: VideoPrivacy
643 token?: string 643 token?: string
644 fixture?: string
644}) { 645}) {
645 const videoAttrs: any = { name: options.videoName } 646 const videoAttrs: any = { name: options.videoName }
646 if (options.nsfw) videoAttrs.nsfw = options.nsfw 647 if (options.nsfw) videoAttrs.nsfw = options.nsfw
647 if (options.privacy) videoAttrs.privacy = options.privacy 648 if (options.privacy) videoAttrs.privacy = options.privacy
649 if (options.fixture) videoAttrs.fixture = options.fixture
648 650
649 const res = await uploadVideo(options.server.url, options.token || options.server.accessToken, videoAttrs) 651 const res = await uploadVideo(options.server.url, options.token || options.server.accessToken, videoAttrs)
650 652