From 02f2445e5f5b54ef52620f219c38c839f6866b7f Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 28 Oct 2025 14:29:47 -0700 Subject: [PATCH] Fix nip29 group access --- zooid/instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zooid/instance.go b/zooid/instance.go index d4810c2..d41fe05 100644 --- a/zooid/instance.go +++ b/zooid/instance.go @@ -345,7 +345,7 @@ func (instance *Instance) QueryStored(ctx context.Context, filter nostr.Filter) continue } - if !instance.Groups.IsMember(h, pubkey) { + if !instance.Groups.HasAccess(h, pubkey) { continue } } @@ -442,7 +442,7 @@ func (instance *Instance) OnEvent(ctx context.Context, event nostr.Event) (rejec return true, "invalid: no such group exists" } - if HasTag(meta.Tags, "closed") && !instance.Groups.IsMember(h, pubkey) { + if !instance.Groups.HasAccess(h, pubkey) { return true, "restricted: you are not a member of that group" } }