only do this if in url mode
This commit is contained in:
parent
d64df9ad78
commit
a92a619684
1 changed files with 5 additions and 3 deletions
2
site.js
2
site.js
|
@ -205,11 +205,13 @@ async function siteCollector(user, path, site, useLimit, dat) {
|
||||||
if (!following || !followers) continue;
|
if (!following || !followers) continue;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (site == 'url') {
|
||||||
let o = new URL(new URL(uf).origin).toString();
|
let o = new URL(new URL(uf).origin).toString();
|
||||||
|
|
||||||
if (followers.indexOf(o) == -1) {
|
if (followers.indexOf(o) == -1) {
|
||||||
followers.push(o)
|
followers.push(o)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue