diff --git a/event.go b/event.go index d385e76..0a205fc 100644 --- a/event.go +++ b/event.go @@ -168,6 +168,7 @@ example: evt.Content = "" kindWasSupplied := strings.Contains(stdinEvent, `"kind"`) + contentWasSupplied := strings.Contains(stdinEvent, `"content"`) mustRehashAndResign := false if err := easyjson.Unmarshal([]byte(stdinEvent), &evt); err != nil { @@ -194,7 +195,7 @@ example: evt.Content = content } mustRehashAndResign = true - } else if evt.Content == "" && evt.Kind == 1 { + } else if !contentWasSupplied && evt.Content == "" && evt.Kind == 1 { evt.Content = "hello from the nostr army knife" mustRehashAndResign = true }