]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/activitypub/client.ts
Fix lazy static route with unknown avatars
[github/Chocobozzz/PeerTube.git] / server / controllers / activitypub / client.ts
index d36d10de1b3d33bc63bec0bc25e12bf2f57be458..11504b35427b0883776e750f71f311d5d7a215e2 100644 (file)
@@ -208,7 +208,7 @@ function getAccountVideoRate (rateType: VideoRateType) {
 
 async function videoController (req: express.Request, res: express.Response) {
   // We need more attributes
-  const video = await VideoModel.loadForGetAPI(res.locals.video.id)
+  const video = await VideoModel.loadForGetAPI({ id: res.locals.video.id })
 
   if (video.url.startsWith(WEBSERVER.URL) === false) return res.redirect(video.url)