aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorLucas Declercq <lucas.declercq@ineat-conseil.fr>2018-10-08 14:42:55 +0200
committerLucas Declercq <lucas.declercq@ineat-conseil.fr>2018-10-08 14:42:55 +0200
commit4ffdcfc63b8c804a0aea20609544c859ab57318b (patch)
tree079c10d28490fd1861c3643ae67c19570f483761 /server/helpers/custom-validators
parente0d827e29afc1b29eaf550deb0627c13088c0c65 (diff)
downloadPeerTube-4ffdcfc63b8c804a0aea20609544c859ab57318b.tar.gz
PeerTube-4ffdcfc63b8c804a0aea20609544c859ab57318b.tar.zst
PeerTube-4ffdcfc63b8c804a0aea20609544c859ab57318b.zip
Fix some defaults values + indentation
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/activitypub/videos.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts
index 34e4cdff9..59964f91a 100644
--- a/server/helpers/custom-validators/activitypub/videos.ts
+++ b/server/helpers/custom-validators/activitypub/videos.ts
@@ -56,6 +56,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
56 // Default attributes 56 // Default attributes
57 if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED 57 if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
58 if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false 58 if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
59 if (!isBooleanValid(video.downloadingEnabled)) video.downloadingEnabled = true
59 60
60 return isActivityPubUrlValid(video.id) && 61 return isActivityPubUrlValid(video.id) &&
61 isVideoNameValid(video.name) && 62 isVideoNameValid(video.name) &&