diff options
| author | Adam Soltys <[email protected]> | 2025-01-18 21:25:53 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-18 21:25:53 -0800 |
| commit | 22106c0ce31cc6f412945388098547041a4fa8fa (patch) | |
| tree | b7dfe72e9cec6f63d822f1249a8bc83057ab9372 | |
| parent | b15b5d405d732fe6be32eb591ae1a19db530b787 (diff) | |
| download | coinos-server-22106c0ce31cc6f412945388098547041a4fa8fa.tar.gz coinos-server-22106c0ce31cc6f412945388098547041a4fa8fa.zip | |
parse npubs
| -rw-r--r-- | routes/nostr.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
