aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-11 20:20:42 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-12-13 09:13:43 +0100
commitbee29df8a9ba3090be3daa8ff806dd9a26d7a5cf (patch)
tree9e9f6d509ed24f799f82667109498b9561474a4d /server/helpers/custom-validators
parentd816f3a063febac1cad09ab3a32e5f0d29353627 (diff)
downloadPeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.tar.gz
PeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.tar.zst
PeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.zip
autoplay next video support for playlists
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 16a95f120..008916a04 100644
--- a/server/helpers/custom-validators/users.ts
+++ b/server/helpers/custom-validators/users.ts
@@ -69,6 +69,10 @@ function isUserAutoPlayNextVideoValid (value: any) {
69 return isBooleanValid(value) 69 return isBooleanValid(value)
70} 70}
71 71
72function isUserAutoPlayNextVideoPlaylistValid (value: any) {
73 return isBooleanValid(value)
74}
75
72function isNoInstanceConfigWarningModal (value: any) { 76function isNoInstanceConfigWarningModal (value: any) {
73 return isBooleanValid(value) 77 return isBooleanValid(value)
74} 78}
@@ -111,6 +115,7 @@ export {
111 isUserWebTorrentEnabledValid, 115 isUserWebTorrentEnabledValid,
112 isUserAutoPlayVideoValid, 116 isUserAutoPlayVideoValid,
113 isUserAutoPlayNextVideoValid, 117 isUserAutoPlayNextVideoValid,
118 isUserAutoPlayNextVideoPlaylistValid,
114 isUserDisplayNameValid, 119 isUserDisplayNameValid,
115 isUserDescriptionValid, 120 isUserDescriptionValid,
116 isNoInstanceConfigWarningModal, 121 isNoInstanceConfigWarningModal,