aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFrank Sträter <fstrater@beeldengeluid.nl>2019-08-28 12:31:55 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-08-28 12:58:47 +0200
commitb1b7f7160b02e64dd53faea96e748dd816895495 (patch)
tree994c9f8c49d159672b86dd985c41e300113a2829 /server
parent076d3ace1e89c9f7083f37e654f837801c891503 (diff)
downloadPeerTube-b1b7f7160b02e64dd53faea96e748dd816895495.tar.gz
PeerTube-b1b7f7160b02e64dd53faea96e748dd816895495.tar.zst
PeerTube-b1b7f7160b02e64dd53faea96e748dd816895495.zip
Bug fix logical and/or boolean selector
Diffstat (limited to 'server')
-rw-r--r--server/controllers/api/videos/import.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.ts
index 8879f3442..ebe8718c7 100644
--- a/server/controllers/api/videos/import.ts
+++ b/server/controllers/api/videos/import.ts
@@ -190,8 +190,8 @@ function buildVideo (channelId: number, body: VideoImportCreate, importData: You
190 category: body.category || importData.category, 190 category: body.category || importData.category,
191 licence: body.licence || importData.licence, 191 licence: body.licence || importData.licence,
192 language: body.language || undefined, 192 language: body.language || undefined,
193 commentsEnabled: body.commentsEnabled || true, 193 commentsEnabled: body.commentsEnabled && true,
194 downloadEnabled: body.downloadEnabled || true, 194 downloadEnabled: body.downloadEnabled && true,
195 waitTranscoding: body.waitTranscoding || false, 195 waitTranscoding: body.waitTranscoding || false,
196 state: VideoState.TO_IMPORT, 196 state: VideoState.TO_IMPORT,
197 nsfw: body.nsfw || importData.nsfw || false, 197 nsfw: body.nsfw || importData.nsfw || false,