diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-19 16:02:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-21 17:38:13 +0200 |
commit | 12dc3a942a13c7f1489822dae052da197ef15905 (patch) | |
tree | 7b87b6be692af0b62ebac17e720c80244fd8a7ec /server/helpers/custom-validators | |
parent | c6867725fb8e3dfbc2018a37ed5a963103587cb6 (diff) | |
download | PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.tar.gz PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.tar.zst PeerTube-12dc3a942a13c7f1489822dae052da197ef15905.zip |
Implement replace file in server side
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 573a29754..07e25b8ba 100644 --- a/server/helpers/custom-validators/activitypub/videos.ts +++ b/server/helpers/custom-validators/activitypub/videos.ts | |||
@@ -76,6 +76,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) { | |||
76 | isDateValid(video.published) && | 76 | isDateValid(video.published) && |
77 | isDateValid(video.updated) && | 77 | isDateValid(video.updated) && |
78 | (!video.originallyPublishedAt || isDateValid(video.originallyPublishedAt)) && | 78 | (!video.originallyPublishedAt || isDateValid(video.originallyPublishedAt)) && |
79 | (!video.uploadDate || isDateValid(video.uploadDate)) && | ||
79 | (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && | 80 | (!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) && |
80 | video.attributedTo.length !== 0 | 81 | video.attributedTo.length !== 0 |
81 | } | 82 | } |