diff --git a/handlers.go b/handlers.go index 7db1c6b..4829477 100644 --- a/handlers.go +++ b/handlers.go @@ -318,6 +318,7 @@ func (rl *Relay) HandleNIP11(w http.ResponseWriter, r *http.Request) { Description: rl.Description, PubKey: rl.PubKey, Contact: rl.Contact, + Icon: rl.IconURL, SupportedNIPs: supportedNIPs, Software: "https://github.com/trailriver/khatru", Version: "n/a", diff --git a/relay.go b/relay.go index dbf39c0..06c6214 100644 --- a/relay.go +++ b/relay.go @@ -39,6 +39,7 @@ type Relay struct { PubKey string Contact string ServiceURL string // required for nip-42 + IconURL string RejectEvent []func(ctx context.Context, event *nostr.Event) (reject bool, msg string) RejectFilter []func(ctx context.Context, filter nostr.Filter) (reject bool, msg string)