Stub out unban/unallow
This commit is contained in:
@@ -348,10 +348,18 @@ func (m *ManagementStore) Enable(instance *Instance) {
|
||||
return m.BanPubkey(pubkey, reason)
|
||||
}
|
||||
|
||||
// instance.Relay.ManagementAPI.UnbanPubKey = func(ctx context.Context, pubkey nostr.PubKey, reason string) error {
|
||||
// return m.RemoveBannedPubkey(pubkey)
|
||||
// }
|
||||
|
||||
instance.Relay.ManagementAPI.AllowPubKey = func(ctx context.Context, pubkey nostr.PubKey, reason string) error {
|
||||
return m.AllowPubkey(pubkey)
|
||||
}
|
||||
|
||||
// instance.Relay.ManagementAPI.UnallowPubKey = func(ctx context.Context, pubkey nostr.PubKey, reason string) error {
|
||||
// return m.RemoveMember(pubkey)
|
||||
// }
|
||||
|
||||
instance.Relay.ManagementAPI.ListBannedPubKeys = func(ctx context.Context) ([]nip86.PubKeyReason, error) {
|
||||
return m.GetBannedPubkeyItems(), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user