From: Chocobozzz Date: Mon, 4 Nov 2019 14:20:34 +0000 (+0100) Subject: Fix auto index follow X-Git-Tag: v2.0.0~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=92ce62331e141390e3430fb5ee64bf253db347eb;p=oweals%2Fpeertube.git Fix auto index follow --- 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 })