From 61485413b61d2ee633893ccaef24d23a13b06530 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 15 Jan 2025 18:02:16 +0800 Subject: [PATCH] Unfurl BotKit/Fedify links --- src/utils/isMastodonLinkMaybe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/isMastodonLinkMaybe.js b/src/utils/isMastodonLinkMaybe.js index 753fc3bb..a393cbb1 100644 --- a/src/utils/isMastodonLinkMaybe.js +++ b/src/utils/isMastodonLinkMaybe.js @@ -8,6 +8,7 @@ export default function isMastodonLinkMaybe(url) { /^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) || // Pleroma /^\/@[^/]+\/post\/[a-z0-9\-_]+$/i.test(pathname) || // Threads /^\/@[^/]+\/[a-z0-9]+[a-z0-9\-]+[a-z0-9]+$/i.test(pathname) || // Hollo + /^\/ap\/note\/[a-z0-9\-_]+$/i.test(pathname) || // BotKit, Fedify (hostname === 'fed.brid.gy' && pathname.startsWith('/r/http')) || // Bridgy Fed /#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣 );