1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix trending page

This commit is contained in:
Chocobozzz 2018-12-03 09:14:56 +01:00
parent 1a8dd4da77
commit dbe6aa698e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 21 additions and 12 deletions

View file

@ -411,12 +411,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
])
const serverActor = await getServerActor()
// Send the event to the origin server
// If we own the video, we'll send an update event when we'll process the views (in our job queue)
if (videoInstance.isOwned() === false) {
await sendCreateView(serverActor, videoInstance, undefined)
}
await sendCreateView(serverActor, videoInstance, undefined)
return res.status(204).end()
}