aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-05-24 15:56:23 +0200
committerChocobozzz <me@florianbigard.com>2022-05-24 15:56:23 +0200
commitdb9d882c2567fba197754a1f6fd1d75114d33560 (patch)
tree1a3be4f42c543cec2d60117565d1c92e3297c997 /server/initializers/config.ts
parent87a0cac618c8ed4a09408273d0f5a468530e8062 (diff)
downloadPeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.gz
PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.tar.zst
PeerTube-db9d882c2567fba197754a1f6fd1d75114d33560.zip
Add ability to set default feed items count
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 2f59e3e3e..c76a839bc 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -247,6 +247,14 @@ const CONFIG = {
247 } 247 }
248 } 248 }
249 }, 249 },
250 FEEDS: {
251 VIDEOS: {
252 COUNT: config.get<number>('feeds.videos.count')
253 },
254 COMMENTS: {
255 COUNT: config.get<number>('feeds.comments.count')
256 }
257 },
250 ADMIN: { 258 ADMIN: {
251 get EMAIL () { return config.get<string>('admin.email') } 259 get EMAIL () { return config.get<string>('admin.email') }
252 }, 260 },