Skip to content

Commit

Permalink
nip05: omit empty fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Feb 28, 2024
1 parent c5819b6 commit e4f0509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nip05/nip05.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e4f0509

Please sign in to comment.