aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/users.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts
index 90fc74a48..1cb5e5b0f 100644
--- a/server/helpers/custom-validators/users.ts
+++ b/server/helpers/custom-validators/users.ts
@@ -42,6 +42,10 @@ function isUserNSFWPolicyValid (value: any) {
42 return exists(value) && nsfwPolicies.indexOf(value) !== -1 42 return exists(value) && nsfwPolicies.indexOf(value) !== -1
43} 43}
44 44
45function isUserWebTorrentEnabledValid (value: any) {
46 return isBooleanValid(value)
47}
48
45function isUserAutoPlayVideoValid (value: any) { 49function isUserAutoPlayVideoValid (value: any) {
46 return isBooleanValid(value) 50 return isBooleanValid(value)
47} 51}
@@ -78,6 +82,7 @@ export {
78 isUserUsernameValid, 82 isUserUsernameValid,
79 isUserEmailVerifiedValid, 83 isUserEmailVerifiedValid,
80 isUserNSFWPolicyValid, 84 isUserNSFWPolicyValid,
85 isUserWebTorrentEnabledValid,
81 isUserAutoPlayVideoValid, 86 isUserAutoPlayVideoValid,
82 isUserDisplayNameValid, 87 isUserDisplayNameValid,
83 isUserDescriptionValid, 88 isUserDescriptionValid,