mirror of
https://github.com/fiatjaf/nak.git
synced 2026-10-05 15:18:23 +00:00
event: reset tags with [:0] instead of clear(), which keeps the length and leaves phantom empty tags on subsequent stdin events.
This commit is contained in:
@@ -206,7 +206,7 @@ example:
|
|||||||
handleEvent := func(stdinEvent string) error {
|
handleEvent := func(stdinEvent string) error {
|
||||||
evt.Content = ""
|
evt.Content = ""
|
||||||
evt.CreatedAt = 0
|
evt.CreatedAt = 0
|
||||||
clear(evt.Tags)
|
evt.Tags = evt.Tags[:0]
|
||||||
evt.ID = nostr.ZeroID
|
evt.ID = nostr.ZeroID
|
||||||
evt.PubKey = nostr.ZeroPK
|
evt.PubKey = nostr.ZeroPK
|
||||||
evt.Sig = [64]byte{}
|
evt.Sig = [64]byte{}
|
||||||
|
|||||||
Reference in New Issue
Block a user