aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/feeds.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-24 17:05:32 +0200
committerChocobozzz <me@florianbigard.com>2018-04-24 17:12:57 +0200
commit48dce1c90dff4e90a4bcffefaecf157336cf904b (patch)
tree478de23812d0bfd93f47e9ad6ad8888c9edcc235 /server/controllers/feeds.ts
parent82e392f8a42a19815e932dd386e96e61ebe6d191 (diff)
downloadPeerTube-48dce1c90dff4e90a4bcffefaecf157336cf904b.tar.gz
PeerTube-48dce1c90dff4e90a4bcffefaecf157336cf904b.tar.zst
PeerTube-48dce1c90dff4e90a4bcffefaecf157336cf904b.zip
Update video channel routes
Diffstat (limited to 'server/controllers/feeds.ts')
-rw-r--r--server/controllers/feeds.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts
index 6a6af3e09..7dcaf7004 100644
--- a/server/controllers/feeds.ts
+++ b/server/controllers/feeds.ts
@@ -33,15 +33,15 @@ async function generateFeed (req: express.Request, res: express.Response, next:
33 const account: AccountModel = res.locals.account 33 const account: AccountModel = res.locals.account
34 const hideNSFW = CONFIG.INSTANCE.DEFAULT_NSFW_POLICY === 'do_not_list' 34 const hideNSFW = CONFIG.INSTANCE.DEFAULT_NSFW_POLICY === 'do_not_list'
35 35
36 const resultList = await VideoModel.listForApi( 36 const resultList = await VideoModel.listForApi({
37 start, 37 start,
38 FEEDS.COUNT, 38 count: FEEDS.COUNT,
39 req.query.sort as VideoSortField, 39 sort: req.query.sort,
40 hideNSFW, 40 hideNSFW,
41 req.query.filter, 41 filter: req.query.filter,
42 true, 42 withFiles: true,
43 account ? account.id : null 43 accountId: account ? account.id : null
44 ) 44 })
45 45
46 // Adding video items to the feed, one at a time 46 // Adding video items to the feed, one at a time
47 resultList.data.forEach(video => { 47 resultList.data.forEach(video => {