aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorRigel Kent <par@rigelk.eu>2018-03-27 13:42:57 +0200
committerChocobozzz <me@florianbigard.com>2018-03-27 13:42:57 +0200
commit1869c87535d31a73a26c5d07718cdf94300cc332 (patch)
tree0fa1823002f7a1e76e8ee138da6f5e2088f65981 /server/controllers
parentfc27b17c6b4ddaef2db8e7086d3f74c081026bd9 (diff)
downloadPeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.tar.gz
PeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.tar.zst
PeerTube-1869c87535d31a73a26c5d07718cdf94300cc332.zip
show quota in stats, display quota on the about page, fixes #405 (#421)
move videoQuota under a user object, use byte PipeTransform
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/config.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts
index 62a783982..8d7fc8cf1 100644
--- a/server/controllers/api/config.ts
+++ b/server/controllers/api/config.ts
@@ -76,6 +76,9 @@ async function getConfig (req: express.Request, res: express.Response, next: exp
76 file: { 76 file: {
77 extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME 77 extensions: CONSTRAINTS_FIELDS.VIDEOS.EXTNAME
78 } 78 }
79 },
80 user: {
81 videoQuota: CONFIG.USER.VIDEO_QUOTA
79 } 82 }
80 } 83 }
81 84