diff options
author | Chocobozzz <me@florianbigard.com> | 2018-04-24 17:05:32 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-04-24 17:12:57 +0200 |
commit | 48dce1c90dff4e90a4bcffefaecf157336cf904b (patch) | |
tree | 478de23812d0bfd93f47e9ad6ad8888c9edcc235 /server/controllers/feeds.ts | |
parent | 82e392f8a42a19815e932dd386e96e61ebe6d191 (diff) | |
download | PeerTube-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.ts | 14 |
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 => { |