your personal website on atproto - mirror blento.app

Merge pull request #61 from flo-bit/invalid-handle-fix

fix again

authored by Florian and committed by GitHub 537017ff 17bbfae8

+4 -3
+1 -2
src/lib/atproto/methods.ts
··· 94 94 }); 95 95 96 96 if (!response.ok || response.data.handle === 'handle.invalid') { 97 - // fall back to describe repo 98 - const repo = await describeRepo({ did: data.did, client: data.client }); 97 + const repo = await describeRepo({ did: data.did }); 99 98 return { handle: repo?.handle ?? 'handle.invalid', did: data.did }; 100 99 } 101 100
+3 -1
src/lib/cards/SpecialCards/UpdatedBlentos/index.ts
··· 41 41 } 42 42 } 43 43 44 - const result = [...(await Promise.all(profiles)), ...existingUsersArray]; 44 + const result = [...(await Promise.all(profiles)), ...existingUsersArray].filter( 45 + (v) => v && v.handle !== 'handle.invalid' 46 + ); 45 47 46 48 if (cache) { 47 49 await cache?.put('updatedBlentos', JSON.stringify(result));