Fix unfurl bridgy bsky link

This commit is contained in:
Lim Chee Aun 2025-02-04 08:43:19 +08:00
parent 79641b47a5
commit 4b0f523667

View file

@ -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) {