+async function accountPlaylistsController (req: express.Request, res: express.Response) {
+ const account = res.locals.account
+ const activityPubResult = await actorPlaylists(req, { account })
+
+ return activityPubResponse(activityPubContextify(activityPubResult), res)
+}
+
+async function videoChannelPlaylistsController (req: express.Request, res: express.Response) {
+ const channel = res.locals.videoChannel
+ const activityPubResult = await actorPlaylists(req, { channel })
+
+ return activityPubResponse(activityPubContextify(activityPubResult), res)
+}
+
+function getAccountVideoRateFactory (rateType: VideoRateType) {