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) {