mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
Make also P tags clickable in json view
This commit is contained in:
2
utils.go
2
utils.go
@@ -545,7 +545,7 @@ func toJSONHTML(evt *nostr.Event) template.HTML {
|
||||
kind, _ := strconv.Atoi(spl[0])
|
||||
naddr, _ := nip19.EncodeEntity(spl[1], kind, spl[2], relayHints)
|
||||
tagsHTML += `<a class="` + linkCls + `" href="/` + naddr + `">"` + item + `"</a>`
|
||||
} else if i == 1 && tag[0] == "p" && nostr.IsValidPublicKey(item) {
|
||||
} else if i == 1 && strings.ToLower(tag[0]) == "p" && nostr.IsValidPublicKey(item) {
|
||||
var relayHints []string
|
||||
if len(tag) > 2 {
|
||||
relayHints = []string{tag[2]}
|
||||
|
||||
Reference in New Issue
Block a user