this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Test this out for bridgy fed links

+2 -1
+2 -1
src/utils/isMastodonLinkMaybe.jsx
··· 1 1 export default function isMastodonLinkMaybe(url) { 2 2 try { 3 - const { pathname, hash } = URL.parse(url); 3 + const { pathname, hash, hostname } = URL.parse(url); 4 4 return ( 5 5 /^\/.*\/\d+$/i.test(pathname) || 6 6 /^\/(@[^/]+|users\/[^/]+)\/(statuses|posts)\/\w+\/?$/i.test(pathname) || // GoToSocial, Takahe ··· 8 8 /^\/(notice|objects)\/[a-z0-9-]+$/i.test(pathname) || // Pleroma 9 9 /^\/@[^/]+\/post\/[a-z0-9]+$/i.test(pathname) || // Threads 10 10 /^\/@[^/]+\/[a-z0-9]+[a-z0-9\-]+[a-z0-9]+$/i.test(pathname) || // Hollo 11 + (hostname === 'fed.brid.gy' && pathname.startsWith('/r/http')) || // Bridgy Fed 11 12 /#\/[^\/]+\.[^\/]+\/s\/.+/i.test(hash) // Phanpy 🫣 12 13 ); 13 14 } catch (e) {