fedimbed: stop trying to process bluesky as fedi if bluesky is disabled

This commit is contained in:
Cynthia Foxwell 2025-02-11 16:05:31 -07:00
parent e8dfcf454d
commit 2f5a6c088b
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -582,7 +582,13 @@ async function processUrl(msg, url, spoiler = false, command = false) {
if (invalidUrl) return {};
if (canBsky && BSKY_DOMAINS.includes(urlObj.hostname.toLowerCase())) return await bluesky(msg, url, spoiler);
if (BSKY_DOMAINS.includes(urlObj.hostname.toLowerCase())) {
if (canBsky) {
return await bluesky(msg, url, spoiler);
} else {
return {};
}
}
if (!canFedi) return {};
// some lemmy instances have old reddit frontend subdomains