This commit is contained in:
biglyderv 2025-01-31 21:12:55 -05:00
parent a9c7118b43
commit 1b87b278de

View file

@ -40,7 +40,6 @@ async function urlCollector(url, path, file, useLimit) {
let h2;
try {
h2 = new URL(h);
if (h2.pathname == '' || !h2.pathname) h2.pathname = '/'
} catch(err) {
return;
}
@ -51,7 +50,6 @@ async function urlCollector(url, path, file, useLimit) {
let h3;
try {
h3 = new URL(new URL(url).origin);
h3.pathname = '/';
} catch(err) {
return [...new Set(urls)];
}
@ -204,10 +202,10 @@ async function siteCollector(user, path, site, useLimit) {
if (!following || !followers) continue;
try {
let o = new URL(uf);
let o = new URL(new URL(uf).origin);
if (followers.indexOf(o.origin) == -1) {
followers.push(o.origin)
if (followers.indexOf(o) == -1) {
followers.push(o)
}
} catch (err) {
}