diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/extra-utils/videos/videos.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared/extra-utils/videos/videos.ts b/shared/extra-utils/videos/videos.ts index c78563232..1533f37ab 100644 --- a/shared/extra-utils/videos/videos.ts +++ b/shared/extra-utils/videos/videos.ts | |||
@@ -379,7 +379,8 @@ async function uploadVideo (url: string, accessToken: string, videoAttributesArg | |||
379 | req.field('licence', attributes.licence.toString()) | 379 | req.field('licence', attributes.licence.toString()) |
380 | } | 380 | } |
381 | 381 | ||
382 | for (let i = 0; i < attributes.tags.length; i++) { | 382 | const tags = attributes.tags || [] |
383 | for (let i = 0; i < tags.length; i++) { | ||
383 | req.field('tags[' + i + ']', attributes.tags[i]) | 384 | req.field('tags[' + i + ']', attributes.tags[i]) |
384 | } | 385 | } |
385 | 386 | ||