fedimbed.bluesky: another one... (except its url sucks)
This commit is contained in:
parent
3c51db428c
commit
dbbce2cf01
1 changed files with 4 additions and 0 deletions
|
@ -59,6 +59,7 @@ const BSKY_DOMAINS = [
|
|||
"girlcockbsky.app",
|
||||
"bsyy.app",
|
||||
"bskyx.app",
|
||||
"bsky.brid.gy",
|
||||
];
|
||||
|
||||
//eventually:tm:
|
||||
|
@ -315,6 +316,9 @@ async function blueskyQuoteEmbed(quote) {
|
|||
async function bluesky(msg, url, spoiler = false) {
|
||||
const quoteOnly = await hasFlag(msg.guildID, "bskyQuoteOnly");
|
||||
|
||||
// really...
|
||||
if (url.includes("bsky.brid.gy")) url.replace("bsky.brid.gy/r/https://", "");
|
||||
|
||||
const urlObj = new URL(url);
|
||||
urlObj.hostname = "bsky.app";
|
||||
url = urlObj.toString();
|
||||
|
|
Loading…
Reference in a new issue