From b5fa534afeb20d2a793d09142ffc2b5030622f8e Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 30 Oct 2025 12:40:37 -0700 Subject: [PATCH] Fix invite code generation --- zooid/instance.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zooid/instance.go b/zooid/instance.go index ea20aed..309b1f6 100644 --- a/zooid/instance.go +++ b/zooid/instance.go @@ -214,8 +214,10 @@ func (instance *Instance) IsWriteOnlyEvent(event nostr.Event) bool { func (instance *Instance) GenerateInviteEvent(pubkey nostr.PubKey) nostr.Event { filter := nostr.Filter{ - Kinds: []nostr.Kind{RELAY_INVITE}, - Authors: []nostr.PubKey{pubkey}, + Kinds: []nostr.Kind{RELAY_INVITE}, + Tags: nostr.TagMap{ + "#p": []string{pubkey.Hex()}, + }, } for event := range instance.Events.QueryEvents(filter, 1) {