diff --git a/src/utils/og-metadata.ts b/src/utils/og-metadata.ts index db0b6b06..c6df021e 100644 --- a/src/utils/og-metadata.ts +++ b/src/utils/og-metadata.ts @@ -106,7 +106,6 @@ function truncate(s: string, len: number, ellipsis = '…') { * @returns The handle */ export async function getHandle(id: string, acc?: ProfileInfo) { - console.debug({ id, name }); let handle: string | undefined = ''; const handlePubkey = async (pubkey: string) => { @@ -122,7 +121,7 @@ export async function getHandle(id: string, acc?: ProfileInfo) { }; if (/[a-z0-9]{64}/.test(id)) { - await handlePubkey(id); + handle = await handlePubkey(id); } else if (n.bech32().safeParse(id).success) { if (id.startsWith('npub')) { handle = await handlePubkey(nip19.decode(id as `npub1${string}`).data);