diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-03-04 11:00:59 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-03-04 11:00:59 +0100 |
commit | e3d156b341ec1f834d119bfc1b15df6ef9fda737 (patch) | |
tree | f7f993fe89e2c440fd52662d6d2a0bbab321c169 /server/helpers/custom-validators/remote | |
parent | 1f5bf9ef70e2e1e78e3b8f213def26dde7748b89 (diff) | |
download | PeerTube-e3d156b341ec1f834d119bfc1b15df6ef9fda737.tar.gz PeerTube-e3d156b341ec1f834d119bfc1b15df6ef9fda737.tar.zst PeerTube-e3d156b341ec1f834d119bfc1b15df6ef9fda737.zip |
Server: add views attribute when sending videos to friends
Diffstat (limited to 'server/helpers/custom-validators/remote')
-rw-r--r-- | server/helpers/custom-validators/remote/videos.js | 3 |
1 files changed, 2 insertions, 1 deletions
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) { | |||
91 | videosValidators.isVideoNameValid(video.name) && | 91 | videosValidators.isVideoNameValid(video.name) && |
92 | videosValidators.isVideoTagsValid(video.tags) && | 92 | videosValidators.isVideoTagsValid(video.tags) && |
93 | videosValidators.isVideoRemoteIdValid(video.remoteId) && | 93 | videosValidators.isVideoRemoteIdValid(video.remoteId) && |
94 | videosValidators.isVideoExtnameValid(video.extname) | 94 | videosValidators.isVideoExtnameValid(video.extname) && |
95 | videosValidators.isVideoViewsValid(video.views) | ||
95 | } | 96 | } |
96 | 97 | ||
97 | function isRequestTypeAddValid (value) { | 98 | function isRequestTypeAddValid (value) { |