diff options
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/activitypub/videos.ts | 1 |
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 53ad0588d..d94333151 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts | |||
@@ -54,6 +54,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) { | |||
54 | isBooleanValid(video.downloadEnabled) && | 54 | isBooleanValid(video.downloadEnabled) && |
55 | isDateValid(video.published) && | 55 | isDateValid(video.published) && |
56 | isDateValid(video.updated) && | 56 | isDateValid(video.updated) && |
57 | (!video.originallyPublishedAt || isDateValid(video.originallyPublishedAt)) && | ||
57 | (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && | 58 | (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && |
58 | isRemoteVideoIconValid(video.icon) && | 59 | isRemoteVideoIconValid(video.icon) && |
59 | video.url.length !== 0 && | 60 | video.url.length !== 0 && |