1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Server: add nsfw attribute

This commit is contained in:
Chocobozzz 2017-03-28 21:19:46 +02:00
parent d07137b90b
commit 31b59b4774
14 changed files with 154 additions and 2 deletions

View file

@ -87,6 +87,7 @@ function isCommonVideoAttributesValid (video) {
videosValidators.isVideoDateValid(video.updatedAt) &&
videosValidators.isVideoCategoryValid(video.category) &&
videosValidators.isVideoLicenceValid(video.licence) &&
videosValidators.isVideoNSFWValid(video.nsfw) &&
videosValidators.isVideoDescriptionValid(video.description) &&
videosValidators.isVideoDurationValid(video.duration) &&
videosValidators.isVideoInfoHashValid(video.infoHash) &&