fedimbed: actually work please?????

This commit is contained in:
Cynthia Foxwell 2024-11-21 13:53:41 -07:00
parent 2a2acdf6ad
commit 0d0bc6edaa

View file

@ -520,8 +520,13 @@ async function bluesky(msg, url, spoiler = false) {
}
async function processUrl(msg, url, spoiler = false, command = false) {
const canFedi = command || hasFlag(msg.guildID, "fedimbed");
const canBsky = command || hasFlag(msg.guildID, "bskyEmbeds");
let canFedi = hasFlag(msg.guildID, "fedimbed");
let canBsky = hasFlag(msg.guildID, "bskyEmbeds");
if (command == true) {
canFedi = true;
canBsky = true;
}
let invalidUrl = false;
let urlObj;