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