mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-15 08:37:11 +01:00
Add fields to ProfileMetadata
This commit is contained in:
@@ -7,9 +7,13 @@ import (
|
||||
|
||||
type ProfileMetadata struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
DisplayName string `json:"display_name,omitempty"`
|
||||
About string `json:"about,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) {
|
||||
|
||||
Reference in New Issue
Block a user