Remove nip 86 method config

This commit is contained in:
Jon Staab
2026-03-03 09:29:08 -08:00
parent d0520bbe3c
commit 4a77e0dab6
3 changed files with 1 additions and 5 deletions
-2
View File
@@ -53,7 +53,6 @@ Configures NIP 29 support.
Configures NIP 86 support. Configures NIP 86 support.
- `enabled` - whether NIP 86 is enabled. - `enabled` - whether NIP 86 is enabled.
- `methods` - a list of [NIP 86](https://github.com/nostr-protocol/nips/blob/master/86.md) relay management methods enabled for this relay.
### `[blossom]` ### `[blossom]`
@@ -102,7 +101,6 @@ auto_join = false
[management] [management]
enabled = true enabled = true
methods = ["supportedmethods", "banpubkey", "allowpubkey"]
[blossom] [blossom]
enabled = false enabled = false
-1
View File
@@ -709,7 +709,6 @@ func TestAPIHandler_ConfigValidation(t *testing.T) {
}, },
"management": map[string]interface{}{ "management": map[string]interface{}{
"enabled": true, "enabled": true,
"methods": []string{"invite"},
}, },
"blossom": map[string]interface{}{ "blossom": map[string]interface{}{
"enabled": true, "enabled": true,
+1 -2
View File
@@ -41,8 +41,7 @@ type Config struct {
} `toml:"push" json:"push"` } `toml:"push" json:"push"`
Management struct { Management struct {
Enabled bool `toml:"enabled" json:"enabled"` Enabled bool `toml:"enabled" json:"enabled"`
Methods []string `toml:"methods" json:"methods"`
} `toml:"management" json:"management"` } `toml:"management" json:"management"`
Blossom struct { Blossom struct {