From f8fabe6c13388147d8ef73fe1daeca4e474847c1 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 18 Apr 2025 21:44:00 -0600 Subject: [PATCH] fedimbed: fix t.co --- src/modules/fedimbed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 05b37f5..722a5fb 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1296,7 +1296,9 @@ async function processUrl(msg, url, spoiler = false, command = false) { 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);