aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-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 fe94bd58a..224f03f4e 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 if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED 56 if (!isVideoStateValid(video.state)) video.state = VideoState.PUBLISHED
57 if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false 57 if (!isBooleanValid(video.waitTranscoding)) video.waitTranscoding = false
58 if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true 58 if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true
59 if (!isBooleanValid(video.commentsEnabled)) video.commentsEnabled = false
59 60
60 return isActivityPubUrlValid(video.id) && 61 return isActivityPubUrlValid(video.id) &&
61 isVideoNameValid(video.name) && 62 isVideoNameValid(video.name) &&