mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Relax on tags (accept any characters and not required anymore)
This commit is contained in:
parent
6e07c3de88
commit
e54163c2d5
7 changed files with 31 additions and 40 deletions
|
@ -69,8 +69,7 @@ function isVideoTagsValid (tags) {
|
|||
return miscValidators.isArray(tags) &&
|
||||
validator.isInt(tags.length, VIDEOS_CONSTRAINTS_FIELDS.TAGS) &&
|
||||
tags.every(function (tag) {
|
||||
return validator.isAlphanumeric(tag) &&
|
||||
validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG)
|
||||
return validator.isLength(tag, VIDEOS_CONSTRAINTS_FIELDS.TAG)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue