videoChannelId: videoChannel ? videoChannel.id : null
}
- const resultList = await VideoModel.listForApi({
+ const { data } = await VideoModel.listForApi({
start,
count: FEEDS.COUNT,
sort: req.query.sort,
nsfw,
filter: req.query.filter as VideoFilter,
withFiles: true,
+ countVideos: false,
...options
})
- addVideosToFeed(feed, resultList.data)
+ addVideosToFeed(feed, data)
// Now the feed generation is done, let's send it!
return sendFeed(feed, req, res)
queryString: new URL(WEBSERVER.URL + req.url).search
})
- const resultList = await VideoModel.listForApi({
+ const { data } = await VideoModel.listForApi({
start,
count: FEEDS.COUNT,
sort: req.query.sort,
includeLocalVideos: false,
nsfw,
filter: req.query.filter as VideoFilter,
+
withFiles: true,
+ countVideos: false,
followerActorId: res.locals.user.Account.Actor.id,
user: res.locals.user
})
- addVideosToFeed(feed, resultList.data)
+ addVideosToFeed(feed, data)
// Now the feed generation is done, let's send it!
return sendFeed(feed, req, res)