diff --git a/src/utils/domains.ts b/src/utils/domains.ts index b8697091..799dc029 100644 --- a/src/utils/domains.ts +++ b/src/utils/domains.ts @@ -56,7 +56,12 @@ export const nodeInfoCache = new SimpleLRU( export async function fetchDittoDomain(domain: string): Promise { const total_users = (await nodeInfoCache.fetch(domain)).usage.users.total; - const { title, description, image } = (await unfurlCardCached(`https://${domain}`)) ?? { title: '', description: '' }; + const result = await unfurlCardCached(`https://${domain}`); + if (!result) { + return; + } + + const { title, description, image } = result; return { domain,