aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/activitypub/videos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts
index 59964f91a..5015c59dd 100644
--- a/server/helpers/custom-validators/activitypub/videos.ts
+++ b/server/helpers/custom-validators/activitypub/videos.ts
@@ -56,7 +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 if (!isBooleanValid(video.downloadEnabled)) video.downloadEnabled = true
60 60
61 return isActivityPubUrlValid(video.id) && 61 return isActivityPubUrlValid(video.id) &&
62 isVideoNameValid(video.name) && 62 isVideoNameValid(video.name) &&
@@ -68,7 +68,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
68 isVideoViewsValid(video.views) && 68 isVideoViewsValid(video.views) &&
69 isBooleanValid(video.sensitive) && 69 isBooleanValid(video.sensitive) &&
70 isBooleanValid(video.commentsEnabled) && 70 isBooleanValid(video.commentsEnabled) &&
71 isBooleanValid(video.downloadingEnabled) && 71 isBooleanValid(video.downloadEnabled) &&
72 isDateValid(video.published) && 72 isDateValid(video.published) &&
73 isDateValid(video.updated) && 73 isDateValid(video.updated) &&
74 (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && 74 (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) &&