From d2544d0f4d859abcb5c9e582bd6eaa2e047bfcbe Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 18 Nov 2023 08:03:32 -0300 Subject: [PATCH] stop uselessly returning NIPs that are obviously supported on NIP-11 response. --- handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers.go b/handlers.go index ab8fb59..b890fbd 100644 --- a/handlers.go +++ b/handlers.go @@ -253,7 +253,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { func (rl *Relay) HandleNIP11(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/nostr+json") - supportedNIPs := []int{9, 11, 12, 15, 16, 20, 33} + supportedNIPs := []int{} if rl.ServiceURL != "" { supportedNIPs = append(supportedNIPs, 42) } @@ -268,7 +268,7 @@ func (rl *Relay) HandleNIP11(w http.ResponseWriter, r *http.Request) { Contact: rl.Contact, Icon: rl.IconURL, SupportedNIPs: supportedNIPs, - Software: "https://github.com/trailriver/khatru", + Software: "https://github.com/fiatjaf/khatru", Version: "n/a", }