diff options
author | Aurélien Béranger <43744761+auberanger@users.noreply.github.com> | 2019-01-14 09:06:48 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-01-14 09:06:48 +0100 |
commit | 9b4b15f91c485f9a7fe2ed314b4101f4b7506b38 (patch) | |
tree | 6ab137f0d309da68ab357602ddd7f56390280a72 /server/controllers/api/config.ts | |
parent | e902e03f0fd2eded99d635b1f9d2c59f417c4721 (diff) | |
download | PeerTube-9b4b15f91c485f9a7fe2ed314b4101f4b7506b38.tar.gz PeerTube-9b4b15f91c485f9a7fe2ed314b4101f4b7506b38.tar.zst PeerTube-9b4b15f91c485f9a7fe2ed314b4101f4b7506b38.zip |
WIP : Indicate to users how "trending" works (#1458)
* Get the INTERVAL_DAYS const in the video-trending component
* Change Trending section title
* Add a tooltip to explain how trending section works
* Minor CSS fix for the my-feed popover next to the titlepage
Diffstat (limited to 'server/controllers/api/config.ts')
-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 dd06a0597..255026f46 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -120,6 +120,11 @@ async function getConfig (req: express.Request, res: express.Response) { | |||
120 | user: { | 120 | user: { |
121 | videoQuota: CONFIG.USER.VIDEO_QUOTA, | 121 | videoQuota: CONFIG.USER.VIDEO_QUOTA, |
122 | videoQuotaDaily: CONFIG.USER.VIDEO_QUOTA_DAILY | 122 | videoQuotaDaily: CONFIG.USER.VIDEO_QUOTA_DAILY |
123 | }, | ||
124 | trending: { | ||
125 | videos: { | ||
126 | intervalDays: CONFIG.TRENDING.VIDEOS.INTERVAL_DAYS | ||
127 | } | ||
123 | } | 128 | } |
124 | } | 129 | } |
125 | 130 | ||