]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/view.ts
Support studio transcoding in peertube runner
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / view.ts
index dee1ec67cb3ac7fed158f8dc96ae3fc81429c9fc..a747fa334fcaf4521566f99d0ebd804e1cdcb9a6 100644 (file)
@@ -39,7 +39,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
   })
 
   if (successView) {
-    Hooks.runAction('action:api.video.viewed', { video: video, ip, req, res })
+    Hooks.runAction('action:api.video.viewed', { video, ip, req, res })
   }
 
   await updateUserHistoryIfNeeded(body, video, res)