forked from coracle/zooid
Remove nip 86 method config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user