only do this if in url mode

This commit is contained in:
biglyderv 2025-01-31 23:53:27 -05:00
parent d64df9ad78
commit a92a619684

View file

@ -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) {
} }