]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/process/process-view.ts
Improve viewer counter
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / process / process-view.ts
index bad079843322fc7ba3a4147bc976bba43d369f77..e49506d8271b7041a8c39238c7d382eaa2e95561 100644 (file)
@@ -32,7 +32,7 @@ async function processCreateView (activity: ActivityView, byActor: MActorSignatu
     ? new Date(activity.expires)
     : undefined
 
-  await VideoViewsManager.Instance.processRemoteView({ video, viewerExpires })
+  await VideoViewsManager.Instance.processRemoteView({ video, viewerId: activity.id, viewerExpires })
 
   if (video.isOwned()) {
     // Forward the view but don't resend the activity to the sender