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 pt2 (#3129)

* fix internal links showing up as external pt2

* fix internal links showing up as external pt2

authored by

Hailey and committed by
GitHub
800eecbf 4e6020b8

+5 -2
+5 -2
src/lib/strings/url-helpers.ts
··· 148 148 export function linkRequiresWarning(uri: string, label: string) { 149 149 const labelDomain = labelToDomain(label) 150 150 151 + // If the uri started with a / we know it is internal. 152 + if (uri.startsWith('/')) { 153 + return false 154 + } 155 + 151 156 let urip 152 157 try { 153 158 urip = new URL(uri) ··· 156 161 } 157 162 158 163 const host = urip.hostname.toLowerCase() 159 - 160 164 // Hosts that end with bsky.app or bsky.social should be trusted by default. 161 165 if ( 162 - uri.startsWith('/') || 163 166 host.endsWith('bsky.app') || 164 167 host.endsWith('bsky.social') || 165 168 host.endsWith('blueskyweb.xyz')