omitempty metadata fields.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user