mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-26 17:52:20 +01:00
nip05: omit empty fields.
This commit is contained in:
parent
c5819b6cb5
commit
e4f0509689
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user