diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-04 10:47:02 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-04 10:47:02 +0200 |
commit | 72de91cb109b091fff607fbb0c6968bb8a1c97f3 (patch) | |
tree | 267b0fc823b8531fe65fb6544171e99148b2da9e /server/tools/upload.ts | |
parent | c49db162ee3ad0acf89f4e71ac0083b30ab798ea (diff) | |
download | PeerTube-72de91cb109b091fff607fbb0c6968bb8a1c97f3.tar.gz PeerTube-72de91cb109b091fff607fbb0c6968bb8a1c97f3.tar.zst PeerTube-72de91cb109b091fff607fbb0c6968bb8a1c97f3.zip |
Fix privacy argument in upload script
Diffstat (limited to 'server/tools/upload.ts')
-rw-r--r-- | server/tools/upload.ts | 2 |
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' | |||
4 | import { promisify } from 'util' | 4 | import { promisify } from 'util' |
5 | import { getClient, login } from '../tests/utils' | 5 | import { getClient, login } from '../tests/utils' |
6 | import { uploadVideo } from '../tests/utils/index' | 6 | import { uploadVideo } from '../tests/utils/index' |
7 | import { VideoPrivacy } from '../../shared/models/videos' | ||
7 | 8 | ||
8 | const accessPromise = promisify(access) | 9 | const accessPromise = promisify(access) |
9 | 10 | ||
@@ -27,6 +28,7 @@ program | |||
27 | 28 | ||
28 | if (!program['tags']) program['tags'] = [] | 29 | if (!program['tags']) program['tags'] = [] |
29 | if (!program['nsfw']) program['nsfw'] = false | 30 | if (!program['nsfw']) program['nsfw'] = false |
31 | if (!program['privacy']) program['privacy'] = VideoPrivacy.PUBLIC | ||
30 | if (!program['commentsEnabled']) program['commentsEnabled'] = false | 32 | if (!program['commentsEnabled']) program['commentsEnabled'] = false |
31 | 33 | ||
32 | if ( | 34 | if ( |