diff --git a/src/lib/atproto/methods.ts b/src/lib/atproto/methods.ts index abbbc051..07bd4912 100644 --- a/src/lib/atproto/methods.ts +++ b/src/lib/atproto/methods.ts @@ -94,8 +94,7 @@ export async function getDetailedProfile(data?: { did?: Did; client?: Client }) }); if (!response.ok || response.data.handle === 'handle.invalid') { - // fall back to describe repo - const repo = await describeRepo({ did: data.did, client: data.client }); + const repo = await describeRepo({ did: data.did }); return { handle: repo?.handle ?? 'handle.invalid', did: data.did }; } diff --git a/src/lib/cards/SpecialCards/UpdatedBlentos/index.ts b/src/lib/cards/SpecialCards/UpdatedBlentos/index.ts index 6615ecc1..48932f04 100644 --- a/src/lib/cards/SpecialCards/UpdatedBlentos/index.ts +++ b/src/lib/cards/SpecialCards/UpdatedBlentos/index.ts @@ -41,7 +41,9 @@ export const UpdatedBlentosCardDefitition = { } } - const result = [...(await Promise.all(profiles)), ...existingUsersArray]; + const result = [...(await Promise.all(profiles)), ...existingUsersArray].filter( + (v) => v && v.handle !== 'handle.invalid' + ); if (cache) { await cache?.put('updatedBlentos', JSON.stringify(result));