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
8
site.js
8
site.js
|
@ -205,10 +205,12 @@ async function siteCollector(user, path, site, useLimit, dat) {
|
|||
if (!following || !followers) continue;
|
||||
|
||||
try {
|
||||
let o = new URL(new URL(uf).origin).toString();
|
||||
if (site == 'url') {
|
||||
let o = new URL(new URL(uf).origin).toString();
|
||||
|
||||
if (followers.indexOf(o) == -1) {
|
||||
followers.push(o)
|
||||
if (followers.indexOf(o) == -1) {
|
||||
followers.push(o)
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue