aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-05-05 14:29:58 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-05-05 14:29:58 +0200
commitc24ac1c18e26b6a24a4d294744908fb0c53ddf3c (patch)
treee66ede727fdc92d446f0db829e0592b5f0a2cdd0 /server/helpers/custom-validators
parent9eee32fc34ece1cc5e624ae15d81bfede68be33f (diff)
downloadPeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.tar.gz
PeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.tar.zst
PeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.zip
Fix unset video language on video update
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/videos.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/videos.js b/server/helpers/custom-validators/videos.js
index 8dabb828d..196731e04 100644
--- a/server/helpers/custom-validators/videos.js
+++ b/server/helpers/custom-validators/videos.js
@@ -53,7 +53,7 @@ function isVideoLicenceValid (value) {
53} 53}
54 54
55function isVideoLanguageValid (value) { 55function isVideoLanguageValid (value) {
56 return constants.VIDEO_LANGUAGES[value] !== undefined 56 return value === null || constants.VIDEO_LANGUAGES[value] !== undefined
57} 57}
58 58
59function isVideoNSFWValid (value) { 59function isVideoNSFWValid (value) {