From f53e1fcd990e790a196ad39044a3520e605978c6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Jun 2022 10:04:52 +0200 Subject: Relax views federation --- server/lib/views/shared/video-viewer-counters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib/views') diff --git a/server/lib/views/shared/video-viewer-counters.ts b/server/lib/views/shared/video-viewer-counters.ts index 999ab7d8d..5158f8f93 100644 --- a/server/lib/views/shared/video-viewer-counters.ts +++ b/server/lib/views/shared/video-viewer-counters.ts @@ -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 -- cgit v1.2.3