mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-20 05:42:10 +02:00
omitempty metadata fields.
This commit is contained in:
parent
ea15550039
commit
fb29445ef9
@ -6,10 +6,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ProfileMetadata struct {
|
type ProfileMetadata struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name,omitempty"`
|
||||||
About string `json:"about"`
|
About string `json:"about,omitempty"`
|
||||||
Picture string `json:"picture"`
|
Picture string `json:"picture,omitempty"`
|
||||||
NIP05 string `json:"nip05"`
|
NIP05 string `json:"nip05,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseMetadata(event Event) (*ProfileMetadata, error) {
|
func ParseMetadata(event Event) (*ProfileMetadata, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user