Stub out unban/unallow

This commit is contained in:
Jon Staab
2025-11-05 16:51:09 -08:00
parent 113565e0fb
commit b6d29223bd
+8
View File
@@ -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
}