From d19b8f889516fee6e078e4f72fc9761d2f055aec Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 2 Nov 2023 21:24:19 -0300 Subject: [PATCH] support icon url. --- handlers.go | 1 + relay.go | 1 + 2 files changed, 2 insertions(+) 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)