Add fields to ProfileMetadata
This commit is contained in:
+8
-4
@@ -6,10 +6,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type ProfileMetadata struct {
|
type ProfileMetadata struct {
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
About string `json:"about,omitempty"`
|
DisplayName string `json:"display_name,omitempty"`
|
||||||
Picture string `json:"picture,omitempty"`
|
About string `json:"about,omitempty"`
|
||||||
NIP05 string `json:"nip05,omitempty"`
|
Website string `json:"website,omitempty"`
|
||||||
|
Picture string `json:"picture,omitempty"`
|
||||||
|
Banner string `json:"banner,omitempty"`
|
||||||
|
NIP05 string `json:"nip05,omitempty"`
|
||||||
|
LUD16 string `json:"lud16,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func ParseMetadata(event Event) (*ProfileMetadata, error) {
|
func ParseMetadata(event Event) (*ProfileMetadata, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user