Fix invite code generation

This commit is contained in:
Jon Staab
2025-10-30 12:40:37 -07:00
parent 039f12e66b
commit b5fa534afe
+4 -2
View File
@@ -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) {