mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-18 03:22:22 +02:00
nip05: omit empty fields.
This commit is contained in:
@@ -13,8 +13,8 @@ import (
|
|||||||
|
|
||||||
type WellKnownResponse struct {
|
type WellKnownResponse struct {
|
||||||
Names map[string]string `json:"names"`
|
Names map[string]string `json:"names"`
|
||||||
Relays map[string][]string `json:"relays"`
|
Relays map[string][]string `json:"relays,omitempty"`
|
||||||
NIP46 map[string][]string `json:"nip46"`
|
NIP46 map[string][]string `json:"nip46,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func QueryIdentifier(ctx context.Context, fullname string) (*nostr.ProfilePointer, error) {
|
func QueryIdentifier(ctx context.Context, fullname string) (*nostr.ProfilePointer, error) {
|
||||||
|
Reference in New Issue
Block a user