Don't list rejectapicall in nip86 supported methods

This commit is contained in:
Jon Staab
2025-06-10 11:12:49 -07:00
committed by fiatjaf_
parent 932825080e
commit 44e4b86955

View File

@@ -130,6 +130,10 @@ func (rl *Relay) HandleNIP86(w http.ResponseWriter, r *http.Request) {
// danger: this assumes the struct fields are appropriately named
methodName := strings.ToLower(field.Name)
if methodName == "rejectapicall" {
continue
}
// assign this only if the function was defined
if !reflect.ValueOf(value).IsNil() {
methods = append(methods, methodName)