GET /xrpc/app.bsky.actor.searchActorsTypeahead typeahead.waow.tech
16
fork

Configure Feed

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

drop @jpeg suffix from avatar URLs to match bsky API

bsky's ImageUriBuilder doesn't append a format suffix — the CDN
defaults to webp which is smaller. our @jpeg override was forcing
unnecessary JPEG transcoding and producing URLs that differed from
bsky's own searchActorsTypeahead response.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

+2 -2
+2 -2
src/utils.ts
··· 14 14 15 15 export function avatarUrl(did: string, cidOrUrl: string): string { 16 16 if (cidOrUrl.startsWith("https://")) return cidOrUrl; 17 - return `https://cdn.bsky.app/img/avatar/plain/${did}/${cidOrUrl}@jpeg`; 17 + return `https://cdn.bsky.app/img/avatar/plain/${did}/${cidOrUrl}`; 18 18 } 19 19 20 20 export function extractAvatarCid(url: string): string { 21 - const match = url.match(/\/([^/]+)@jpeg$/); 21 + const match = url.match(/\/([^/]+?)(?:@[a-z]+)?$/); 22 22 return match?.[1] ?? ''; 23 23 } 24 24