From b6d29223bdab85bfc643f78e0878c424a1e6d9d6 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Wed, 5 Nov 2025 16:51:09 -0800 Subject: [PATCH] Stub out unban/unallow --- zooid/management.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/zooid/management.go b/zooid/management.go index 3132431..b123194 100644 --- a/zooid/management.go +++ b/zooid/management.go @@ -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 }