refactor: url parser
This commit is contained in:
parent
c53429fa6c
commit
d6a5a82cf8
6 changed files with 77 additions and 49 deletions
|
|
@ -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) ?? '',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue