Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

fix internal links showing up as external (#3128)

* fix internal links showing up as external

* fix internal links showing up as external

authored by

Hailey and committed by
GitHub
4e6020b8 2d9a5db9

+6 -1
+6 -1
src/lib/strings/url-helpers.ts
··· 158 158 const host = urip.hostname.toLowerCase() 159 159 160 160 // Hosts that end with bsky.app or bsky.social should be trusted by default. 161 - if (host.endsWith('bsky.app') || host.endsWith('bsky.social')) { 161 + if ( 162 + uri.startsWith('/') || 163 + host.endsWith('bsky.app') || 164 + host.endsWith('bsky.social') || 165 + host.endsWith('blueskyweb.xyz') 166 + ) { 162 167 // if this is a link to internal content, 163 168 // warn if it represents itself as a URL to another app 164 169 return !!labelDomain && labelDomain !== host && isPossiblyAUrl(labelDomain)