some fixes
This commit is contained in:
parent
7fac86a59e
commit
32e5a742bb
1 changed files with 2 additions and 1 deletions
3
site.js
3
site.js
|
@ -123,13 +123,14 @@ async function rounder(users, data, mode) {
|
|||
}
|
||||
|
||||
let endn = [];
|
||||
let oldLength = endn.length;
|
||||
for (let h in data) {
|
||||
let dh = data[h];
|
||||
if (dh.following.length == 0 && dh.followers.length == 0) continue;
|
||||
endn = endn.concat(dh.following, dh.followers);
|
||||
if (endn.length - oldLength > userLimit) break;
|
||||
}
|
||||
endn = [...new Set(endn)];
|
||||
if (mode) endn.length = userLimit;
|
||||
|
||||
return endn;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue