From 22106c0ce31cc6f412945388098547041a4fa8fa Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 18 Jan 2025 21:25:53 -0800 Subject: parse npubs --- routes/nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/nostr.ts b/routes/nostr.ts index 6051a3c2..2b47b834 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -42,7 +42,7 @@ export default { const names = {}; for (const { type, value } of parts) { - if (type.includes("nprofile")) { + if (type.includes("nprofile") || type.includes("npub")) { const { name } = await getProfile(value.pubkey); names[value.pubkey] = name; } -- cgit v1.2.3