stuff
This commit is contained in:
parent
43a2405271
commit
b7efdb1808
1 changed files with 10 additions and 0 deletions
10
site.js
10
site.js
|
@ -191,6 +191,16 @@ async function siteCollector(user, path, site, useLimit) {
|
|||
if (!u) continue;
|
||||
let { following, followers } = u;
|
||||
if (!following || !followers) continue;
|
||||
|
||||
try {
|
||||
let o = new URL(uf);
|
||||
|
||||
if (followers.indexOf(o.origin) == -1) {
|
||||
followers.push(o.origin)
|
||||
}
|
||||
} catch (err) {
|
||||
}
|
||||
|
||||
for (let f of followers) {
|
||||
if (!data[f]) data[f] = {followers: []};
|
||||
if (!data[f].following) data[f].following = [];
|
||||
|
|
Loading…
Reference in a new issue