Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix auto index follow

Chocobozzz92ce62331e14
diff --git a/server/lib/schedulers/auto-follow-index-instances.ts b/server/lib/schedulers/auto-follow-index-instances.ts
index ef11fc87f9..dd326bc1e1 100644
--- a/server/lib/schedulers/auto-follow-index-instances.ts
+++ b/server/lib/schedulers/auto-follow-index-instances.ts
@@ -36,7 +36,9 @@ export class AutoFollowIndexInstances extends AbstractScheduler {
const uri = indexUrl + INSTANCES_INDEX.HOSTS_PATH
- const qs = this.lastCheck ? { since: this.lastCheck.toISOString() } : {}
+ const qs = { count: 1000 }
+ if (this.lastCheck) Object.assign(qs, { since: this.lastCheck.toISOString() })
+
this.lastCheck = new Date()
const { body } = await doRequest({ uri, qs, json: true })