1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Add downloadingEnabled property to video model

This commit is contained in:
Lucas Declercq 2018-10-06 19:17:21 +02:00
parent 35d50b7dd2
commit 156c50af30
34 changed files with 100 additions and 4 deletions

View file

@ -67,6 +67,7 @@ function sanitizeAndCheckVideoTorrentObject (video: any) {
isVideoViewsValid(video.views) &&
isBooleanValid(video.sensitive) &&
isBooleanValid(video.commentsEnabled) &&
isBooleanValid(video.downloadingEnabled) &&
isDateValid(video.published) &&
isDateValid(video.updated) &&
(!video.content || isRemoteVideoContentValid(video.mediaType, video.content)) &&