Skip to content

Commit

Permalink
Fix event data
Browse files Browse the repository at this point in the history
  • Loading branch information
waybackarchiver committed Apr 27, 2023
1 parent 80c6510 commit 5bcaca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publish/nostr/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ func (n *Nostr) publish(ctx context.Context, note string) error {
return fmt.Errorf("failed to get public key: %v", err)
}
ev := nostr.Event{
Kind: 1,
PubKey: pk,
Content: note,
CreatedAt: nostr.Now(),
PubKey: pk,
// Tags: nostr.Tags{[]string{"foo", "bar"}},
Tags: nostr.Tags{},
Kind: nostr.KindTextNote,
}
if err := ev.Sign(sk); err != nil {
return fmt.Errorf("calling sign err: %v", err)
Expand Down

0 comments on commit 5bcaca1

Please sign in to comment.