Skip to content

Commit

Permalink
Fix unfurl bridgy bsky link
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Feb 4, 2025
1 parent 79641b4 commit 4b0f523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/isMastodonLinkMaybe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4b0f523

Please sign in to comment.