diff options
author | Wicklow <123956049+wickloww@users.noreply.github.com> | 2023-04-07 08:09:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 10:09:54 +0200 |
commit | b302c80dc0d9ba8eabef9ef6576efe36afc57584 (patch) | |
tree | 14d406b41291805deb94a36a5e79f8d6989355f8 /server/controllers | |
parent | 9258e9a4a37911fc64b5faada2a7e604bd1ede1f (diff) | |
download | PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.tar.gz PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.tar.zst PeerTube-b302c80dc0d9ba8eabef9ef6576efe36afc57584.zip |
feature/ability to disable video history by default (#5728)
* draft: ability to disable video history by default
* Update configuration and add tests
* Updated code based on review comments
* Add tests on registration and video quota
* Remove required video quotas in query
* Fix tests
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/config.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 86434f382..60d168d12 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -204,6 +204,11 @@ function customConfig (): CustomConfig { | |||
204 | enabled: CONFIG.CONTACT_FORM.ENABLED | 204 | enabled: CONFIG.CONTACT_FORM.ENABLED |
205 | }, | 205 | }, |
206 | user: { | 206 | user: { |
207 | history: { | ||
208 | videos: { | ||
209 | enabled: CONFIG.USER.HISTORY.VIDEOS.ENABLED | ||
210 | } | ||
211 | }, | ||
207 | videoQuota: CONFIG.USER.VIDEO_QUOTA, | 212 | videoQuota: CONFIG.USER.VIDEO_QUOTA, |
208 | videoQuotaDaily: CONFIG.USER.VIDEO_QUOTA_DAILY | 213 | videoQuotaDaily: CONFIG.USER.VIDEO_QUOTA_DAILY |
209 | }, | 214 | }, |