weird junk
This commit is contained in:
parent
32e5a742bb
commit
8e5db4e4d7
1 changed files with 8 additions and 4 deletions
12
site.js
12
site.js
|
@ -188,10 +188,14 @@ async function siteCollector(user, path, site, useLimit, data2) {
|
||||||
if (!j1 || ((i - urls.length - 1) >= pageLimit && useLimit)) break;
|
if (!j1 || ((i - urls.length - 1) >= pageLimit && useLimit)) break;
|
||||||
|
|
||||||
let users2;
|
let users2;
|
||||||
if (site == 'darflen') {
|
try {
|
||||||
users2 = j1[path].map(x => x.profile.username);
|
if (site == 'darflen') {
|
||||||
} else if (site == 'scratch') {
|
users2 = j1[path].map(x => x.profile.username);
|
||||||
users2 = j1.map(x => x.username);
|
} else if (site == 'scratch') {
|
||||||
|
users2 = j1.map(x => x.username);
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
users2 = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
users.push(users2);
|
users.push(users2);
|
||||||
|
|
Loading…
Reference in a new issue