diff options
Diffstat (limited to 'server/helpers/custom-validators/videos.js')
-rw-r--r-- | server/helpers/custom-validators/videos.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js index 92b366717..efa89c427 100644 --- a/server/helpers/custom-validators/videos.js +++ b/server/helpers/custom-validators/videos.js | |||
@@ -69,8 +69,7 @@ function isVideoTagsValid (tags) { | |||
69 | return miscValidators.isArray(tags) && | 69 | return miscValidators.isArray(tags) && |
70 | validator.isInt(tags.length, VIDEOS_CONSTRAINTS_FIELDS.TAGS) && | 70 | validator.isInt(tags.length, VIDEOS_CONSTRAINTS_FIELDS.TAGS) && |
71 | tags.every(function (tag) { | 71 | tags.every(function (tag) { |
72 | return validator.isAlphanumeric(tag) && | 72 | return validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG) |
73 | validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG) | ||
74 | }) | 73 | }) |
75 | } | 74 | } |
76 | 75 | ||