]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/index.ts
Refractor activities sending
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / index.ts
index 0c9e6c2d19d368a9d5e32924233c5781505aecd6..8353a649afcd0a188f68f6455d6910ad6889fc54 100644 (file)
@@ -393,9 +393,9 @@ async function viewVideo (req: express.Request, res: express.Response) {
     Redis.Instance.setIPVideoView(ip, videoInstance.uuid)
   ])
 
-  const serverAccount = await getServerActor()
+  const serverActor = await getServerActor()
 
-  await sendCreateView(serverAccount, videoInstance, undefined)
+  await sendCreateView(serverActor, videoInstance, undefined)
 
   return res.status(204).end()
 }