From 4b0f523667346e5babfff5b8b2bc9ee402dcfc6f Mon Sep 17 00:00:00 2001
From: Lim Chee Aun <cheeaun@gmail.com>
Date: Tue, 4 Feb 2025 08:43:19 +0800
Subject: [PATCH] Fix unfurl bridgy bsky link

---
 src/utils/isMastodonLinkMaybe.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/utils/isMastodonLinkMaybe.js b/src/utils/isMastodonLinkMaybe.js
index a393cbb1..1e749e3d 100644
--- a/src/utils/isMastodonLinkMaybe.js
+++ b/src/utils/isMastodonLinkMaybe.js
@@ -9,7 +9,8 @@ export default function isMastodonLinkMaybe(url) {
       /^\/@[^/]+\/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
+      (/(fed|bsky)\.brid\.gy/i.test(hostname) &&
+        pathname.startsWith('/r/http')) || // Bridgy Fed
       /#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣
     );
   } catch (e) {