1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Relax views federation

This commit is contained in:
Chocobozzz 2022-06-20 10:04:52 +02:00
parent da8637bac9
commit f53e1fcd99
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 2 additions and 2 deletions

View file

@ -165,7 +165,7 @@ export class VideoViewerCounters {
private async federateViewerIfNeeded (video: MVideo, viewer: Viewer) {
// Federate the viewer if it's been a "long" time we did not
const now = new Date().getTime()
const federationLimit = now - (VIEW_LIFETIME.VIEWER_COUNTER / 2)
const federationLimit = now - (VIEW_LIFETIME.VIEWER_COUNTER * 0.75)
if (viewer.lastFederation && viewer.lastFederation > federationLimit) return