···5151 try {
5252 const url = new URL(src)
5353 if (url.hostname === 'cdn.bsky.app') {
5454- url.pathname = url.pathname += "@png"
5454+ // bluesky does not have this in urls anymore, but some forks like blacksky still do this so we need to still check for this
5555+ if (url.pathname.endsWith('@jpeg'))
5656+ url.pathname = url.pathname.replace(/@jpeg$/, '@png')
5757+ else url.pathname = url.pathname += '@png'
5558 return url.toString()
5659 }
5760 } catch {