fedimbed: stop trying to process bluesky as fedi if bluesky is disabled
This commit is contained in:
parent
e8dfcf454d
commit
2f5a6c088b
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue