advertise nip11 on nip11 handler

This commit is contained in:
Gustavo Chain 2023-02-10 18:02:45 +01:00 committed by fiatjaf
parent 304831f749
commit 9aeb352320

View File

@ -308,7 +308,7 @@ func (s *Server) handleWebsocket(w http.ResponseWriter, r *http.Request) {
func (s *Server) handleNIP11(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/json")
supportedNIPs := []int{9, 12, 15, 16, 20}
supportedNIPs := []int{9, 11, 12, 15, 16, 20}
if _, ok := s.relay.(Auther); ok {
supportedNIPs = append(supportedNIPs, 42)
}