nip27 parsing improved (and with nip08 support removed) in its own package.

This commit is contained in:
fiatjaf
2025-02-09 18:00:19 -03:00
parent 7df4cdcb4f
commit d07cccdd45
5 changed files with 126 additions and 218 deletions

View File

@ -4,6 +4,7 @@ import (
"net/url"
"github.com/nbd-wtf/go-nostr"
"github.com/nbd-wtf/go-nostr/nip27"
"github.com/nbd-wtf/go-nostr/sdk/hints"
)
@ -104,7 +105,7 @@ func (sys *System) trackEventHints(ie nostr.RelayEvent) {
}
}
for ref := range ParseReferences(*ie.Event) {
for ref := range nip27.ParseReferences(*ie.Event) {
if ref.Profile != nil {
for _, relay := range ref.Profile.Relays {
if IsVirtualRelay(relay) {