From 92ce62331e141390e3430fb5ee64bf253db347eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Nov 2019 15:20:34 +0100 Subject: [PATCH] Fix auto index follow --- server/lib/schedulers/auto-follow-index-instances.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/lib/schedulers/auto-follow-index-instances.ts b/server/lib/schedulers/auto-follow-index-instances.ts index ef11fc87f..dd326bc1e 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 })