ActivityPub-federated video streaming platform using P2P directly in your web browser
Bug fix logical and/or boolean selector
Frank Sträterb1b7f7160b02
diff --git a/server/controllers/api/videos/import.ts b/server/controllers/api/videos/import.tsindex 8879f3442e..ebe8718c72 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: Youcategory: body.category || importData.category,licence: body.licence || importData.licence,language: body.language || undefined,- commentsEnabled: body.commentsEnabled || true,- downloadEnabled: body.downloadEnabled || true,+ commentsEnabled: body.commentsEnabled && true,+ downloadEnabled: body.downloadEnabled && true,waitTranscoding: body.waitTranscoding || false,state: VideoState.TO_IMPORT,nsfw: body.nsfw || importData.nsfw || false,