diff options
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 => { |