From db2c1c7653be7b7487a222bfa64c696942ce6887 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 25 Aug 2025 18:48:30 -0300 Subject: [PATCH] nip11: this relay pubkey doesn't have to be a pointer. --- nip11/types.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nip11/types.go b/nip11/types.go index 4c81885..a475c63 100644 --- a/nip11/types.go +++ b/nip11/types.go @@ -9,13 +9,13 @@ import ( type RelayInformationDocument struct { URL string `json:"-"` - Name string `json:"name,omitempty"` - Description string `json:"description,omitempty"` - PubKey *nostr.PubKey `json:"pubkey,omitempty"` - Contact string `json:"contact,omitempty"` - SupportedNIPs []any `json:"supported_nips,omitempty"` - Software string `json:"software,omitempty"` - Version string `json:"version,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + PubKey nostr.PubKey `json:"pubkey,omitempty"` + Contact string `json:"contact,omitempty"` + SupportedNIPs []any `json:"supported_nips,omitempty"` + Software string `json:"software,omitempty"` + Version string `json:"version,omitempty"` Limitation *RelayLimitationDocument `json:"limitation,omitempty"` RelayCountries []string `json:"relay_countries,omitempty"`