aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/upload.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/upload.ts')
-rw-r--r--server/tools/upload.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/tools/upload.ts b/server/tools/upload.ts
index e835e61f6..765e9618a 100644
--- a/server/tools/upload.ts
+++ b/server/tools/upload.ts
@@ -4,6 +4,7 @@ import { isAbsolute } from 'path'
4import { promisify } from 'util' 4import { promisify } from 'util'
5import { getClient, login } from '../tests/utils' 5import { getClient, login } from '../tests/utils'
6import { uploadVideo } from '../tests/utils/index' 6import { uploadVideo } from '../tests/utils/index'
7import { VideoPrivacy } from '../../shared/models/videos'
7 8
8const accessPromise = promisify(access) 9const accessPromise = promisify(access)
9 10
@@ -27,6 +28,7 @@ program
27 28
28if (!program['tags']) program['tags'] = [] 29if (!program['tags']) program['tags'] = []
29if (!program['nsfw']) program['nsfw'] = false 30if (!program['nsfw']) program['nsfw'] = false
31if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC
30if (!program['commentsEnabled']) program['commentsEnabled'] = false 32if (!program['commentsEnabled']) program['commentsEnabled'] = false
31 33
32if ( 34if (