fedimbed: fix t.co

This commit is contained in:
Cynthia Foxwell 2025-04-18 21:44:00 -06:00
parent b3536230f7
commit f8fabe6c13
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1296,7 +1296,9 @@ async function processUrl(msg, url, spoiler = false, command = false) {
quoteRes = await processUrl(msg, quoteUrl, spoiler, command); quoteRes = await processUrl(msg, quoteUrl, spoiler, command);
} }
content = content.replaceAll(/tw\.(counter-strike\.gay|c7\.pm)/g, "twitter.com"); content = content
.replaceAll(/tw\.(counter-strike\.gay|c7\.pm)/g, "twitter.com")
.replaceAll(/twitter\.com\/t\.co/g, "t.co");
} }
content = htmlToMarkdown(content); content = htmlToMarkdown(content);