GET /xrpc/app.bsky.actor.searchActorsTypeahead
typeahead.waow.tech
1-- one-shot migration: convert full avatar URLs to CIDs
2-- strips the URL prefix (including DID) and @jpeg suffix, leaving just the CID
3--
4-- run with: npx wrangler d1 execute typeahead --remote --file scripts/migrate-avatar-cid.sql
5
6UPDATE actors
7SET avatar_url = REPLACE(
8 REPLACE(avatar_url, 'https://cdn.bsky.app/img/avatar/plain/' || did || '/', ''),
9 '@jpeg',
10 ''
11)
12WHERE avatar_url LIKE 'https://cdn.bsky.app/%';