From e3d156b341ec1f834d119bfc1b15df6ef9fda737 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sat, 4 Mar 2017 11:00:59 +0100 Subject: Server: add views attribute when sending videos to friends --- server/helpers/custom-validators/remote/videos.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/custom-validators/remote/videos.js b/server/helpers/custom-validators/remote/videos.js index c1786014d..ba2d0bb93 100644 --- a/server/helpers/custom-validators/remote/videos.js +++ b/server/helpers/custom-validators/remote/videos.js @@ -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) { -- cgit v1.2.3