mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 16:14:40 +00:00
The bridge was emitting `xs=https://cdn.nostr.build` for URLs like `https://cdn.nostr.build/i/<sha>.jpg`, dropping the `/i/` prefix. The local cache appends `/<sha>` to the xs server hint per spec, so it would try to fetch `https://cdn.nostr.build/<sha>` — a 404 on nostr.build's non-Blossom CDN scheme. Anchor the server-base extraction on the slash immediately preceding the sha-bearing path segment so we emit `xs=https://cdn.nostr.build/i`. The cache then appends `/<sha>` and reaches the original blob. Affects all three bridge entry points: - MediaUrlContent.toCoilModel (note media) - bridgeProfilePictureUrl (profile pictures) - LocalBlossomCacheRedirectInterceptor (everything else via OkHttp) Flat Blossom paths (`<host>/<sha>`) keep emitting `xs=<host>` unchanged.