Remove nip 86 method config
This commit is contained in:
@@ -53,7 +53,6 @@ Configures NIP 29 support.
|
||||
Configures NIP 86 support.
|
||||
|
||||
- `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]`
|
||||
|
||||
@@ -102,7 +101,6 @@ auto_join = false
|
||||
|
||||
[management]
|
||||
enabled = true
|
||||
methods = ["supportedmethods", "banpubkey", "allowpubkey"]
|
||||
|
||||
[blossom]
|
||||
enabled = false
|
||||
|
||||
@@ -709,7 +709,6 @@ func TestAPIHandler_ConfigValidation(t *testing.T) {
|
||||
},
|
||||
"management": map[string]interface{}{
|
||||
"enabled": true,
|
||||
"methods": []string{"invite"},
|
||||
},
|
||||
"blossom": map[string]interface{}{
|
||||
"enabled": true,
|
||||
|
||||
+1
-2
@@ -41,8 +41,7 @@ type Config struct {
|
||||
} `toml:"push" json:"push"`
|
||||
|
||||
Management struct {
|
||||
Enabled bool `toml:"enabled" json:"enabled"`
|
||||
Methods []string `toml:"methods" json:"methods"`
|
||||
Enabled bool `toml:"enabled" json:"enabled"`
|
||||
} `toml:"management" json:"management"`
|
||||
|
||||
Blossom struct {
|
||||
|
||||
Reference in New Issue
Block a user