Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/lib/atproto/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
}

Expand Down
4 changes: 3 additions & 1 deletion src/lib/cards/SpecialCards/UpdatedBlentos/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down