Fix invite code generation
This commit is contained in:
+4
-2
@@ -214,8 +214,10 @@ func (instance *Instance) IsWriteOnlyEvent(event nostr.Event) bool {
|
|||||||
|
|
||||||
func (instance *Instance) GenerateInviteEvent(pubkey nostr.PubKey) nostr.Event {
|
func (instance *Instance) GenerateInviteEvent(pubkey nostr.PubKey) nostr.Event {
|
||||||
filter := nostr.Filter{
|
filter := nostr.Filter{
|
||||||
Kinds: []nostr.Kind{RELAY_INVITE},
|
Kinds: []nostr.Kind{RELAY_INVITE},
|
||||||
Authors: []nostr.PubKey{pubkey},
|
Tags: nostr.TagMap{
|
||||||
|
"#p": []string{pubkey.Hex()},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for event := range instance.Events.QueryEvents(filter, 1) {
|
for event := range instance.Events.QueryEvents(filter, 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user