diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-04 15:20:34 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-04 15:20:34 +0100 |
commit | 92ce62331e141390e3430fb5ee64bf253db347eb (patch) | |
tree | d0a09ce75c3ae73512c20336481883266d0b38f0 /server/lib | |
parent | f0876a2c3540b3198c1bd2d16bcd8dc47616c4e1 (diff) | |
download | PeerTube-92ce62331e141390e3430fb5ee64bf253db347eb.tar.gz PeerTube-92ce62331e141390e3430fb5ee64bf253db347eb.tar.zst PeerTube-92ce62331e141390e3430fb5ee64bf253db347eb.zip |
Fix auto index follow
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/schedulers/auto-follow-index-instances.ts | 4 |
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 }) |