aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/lib/schedulers/auto-follow-index-instances.ts4
1 files changed, 3 insertions, 1 deletions
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 {
36 36
37 const uri = indexUrl + INSTANCES_INDEX.HOSTS_PATH 37 const uri = indexUrl + INSTANCES_INDEX.HOSTS_PATH
38 38
39 const qs = this.lastCheck ? { since: this.lastCheck.toISOString() } : {} 39 const qs = { count: 1000 }
40 if (this.lastCheck) Object.assign(qs, { since: this.lastCheck.toISOString() })
41
40 this.lastCheck = new Date() 42 this.lastCheck = new Date()
41 43
42 const { body } = await doRequest({ uri, qs, json: true }) 44 const { body } = await doRequest({ uri, qs, json: true })