Skip to content

Commit 5bf440b

Browse files
author
Jon Staab
committed
Fix GenerateInviteEvents
1 parent 73734b4 commit 5bf440b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/access.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func ConsumeInvite(claim string) string {
6161
}
6262

6363
func GenerateInviteEvents(ctx context.Context, filter nostr.Filter) []*nostr.Event {
64-
result := make([]*nostr.Event, 0)
6564
pubkey := khatru.GetAuthed(ctx)
6665
claim := GenerateInvite(pubkey)
6766
event := nostr.Event{
@@ -74,7 +73,7 @@ func GenerateInviteEvents(ctx context.Context, filter nostr.Filter) []*nostr.Eve
7473

7574
event.Sign(RELAY_SECRET)
7675

77-
return result
76+
return []*nostr.Event{&event}
7877
}
7978

8079
// Access policies

0 commit comments

Comments
 (0)