optimize
This commit is contained in:
parent
55fa60f13d
commit
1f15de7ca0
1 changed files with 4 additions and 3 deletions
1
site.js
1
site.js
|
@ -90,6 +90,7 @@ async function siteCollector(user, path, site, useLimit) {
|
||||||
|
|
||||||
let d = process.env.depth || 1;
|
let d = process.env.depth || 1;
|
||||||
for (let i = 1; i < d; i++) {
|
for (let i = 1; i < d; i++) {
|
||||||
|
users = [...new Set(users)];
|
||||||
for (let u of users) {
|
for (let u of users) {
|
||||||
users = users.concat(await siteCollector(u, 'following', site, true));
|
users = users.concat(await siteCollector(u, 'following', site, true));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue