From e4f0509689d184588ecc538848c832c0d7e44874 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 28 Feb 2024 09:41:11 -0300 Subject: [PATCH] nip05: omit empty fields. --- nip05/nip05.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nip05/nip05.go b/nip05/nip05.go index 2764f04..e3e9fa0 100644 --- a/nip05/nip05.go +++ b/nip05/nip05.go @@ -13,8 +13,8 @@ import ( type WellKnownResponse struct { Names map[string]string `json:"names"` - Relays map[string][]string `json:"relays"` - NIP46 map[string][]string `json:"nip46"` + Relays map[string][]string `json:"relays,omitempty"` + NIP46 map[string][]string `json:"nip46,omitempty"` } func QueryIdentifier(ctx context.Context, fullname string) (*nostr.ProfilePointer, error) {