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:
parent
1a8dd4da77
commit
dbe6aa698e
3 changed files with 21 additions and 12 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue