refactor: url parser

This commit is contained in:
codytseng
2025-08-24 15:54:13 +08:00
parent c53429fa6c
commit d6a5a82cf8
6 changed files with 77 additions and 49 deletions

View File

@@ -70,7 +70,7 @@ export function getProfileFromEvent(event: Event) {
created_at: event.created_at
}
} catch (err) {
console.error(err)
console.error(event.content, err)
return {
pubkey: event.pubkey,
npub: pubkeyToNpub(event.pubkey) ?? '',