aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r--server/controllers/api/videos/index.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts
index b659f53ed..3d1b2e1a2 100644
--- a/server/controllers/api/videos/index.ts
+++ b/server/controllers/api/videos/index.ts
@@ -411,12 +411,7 @@ async function viewVideo (req: express.Request, res: express.Response) {
411 ]) 411 ])
412 412
413 const serverActor = await getServerActor() 413 const serverActor = await getServerActor()
414 414 await sendCreateView(serverActor, videoInstance, undefined)
415 // Send the event to the origin server
416 // If we own the video, we'll send an update event when we'll process the views (in our job queue)
417 if (videoInstance.isOwned() === false) {
418 await sendCreateView(serverActor, videoInstance, undefined)
419 }
420 415
421 return res.status(204).end() 416 return res.status(204).end()
422} 417}