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

Server: add views attribute when sending videos to friends

This commit is contained in:
Chocobozzz 2017-03-04 11:00:59 +01:00
parent 1f5bf9ef70
commit e3d156b341
3 changed files with 8 additions and 4 deletions

View file

@ -91,7 +91,8 @@ function isCommonVideoAttributesValid (video) {
videosValidators.isVideoNameValid(video.name) &&
videosValidators.isVideoTagsValid(video.tags) &&
videosValidators.isVideoRemoteIdValid(video.remoteId) &&
videosValidators.isVideoExtnameValid(video.extname)
videosValidators.isVideoExtnameValid(video.extname) &&
videosValidators.isVideoViewsValid(video.views)
}
function isRequestTypeAddValid (value) {