support icon url.

This commit is contained in:
fiatjaf 2023-11-02 21:24:19 -03:00
parent 85ec58cf8e
commit d19b8f8895
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
2 changed files with 2 additions and 0 deletions

View File

@ -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",

View File

@ -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)