feat: relay reviews tab
This commit is contained in:
parent
d93b3e865b
commit
36c9796ea1
20 changed files with 74 additions and 22 deletions
|
|
@ -34,7 +34,8 @@ export function generateBech32IdFromETag(tag: string[]) {
|
|||
export function generateBech32IdFromATag(tag: string[]) {
|
||||
try {
|
||||
const [, coordinate, relay] = tag
|
||||
const [kind, pubkey, identifier] = coordinate.split(':')
|
||||
const [kind, pubkey, ...items] = coordinate.split(':')
|
||||
const identifier = items.join(':')
|
||||
return nip19.naddrEncode({
|
||||
kind: Number(kind),
|
||||
pubkey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue