feat: relay reviews tab

This commit is contained in:
codytseng 2025-10-23 23:38:44 +08:00
parent d93b3e865b
commit 36c9796ea1
20 changed files with 74 additions and 22 deletions

View file

@ -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,