From 36c32ae308d0f26dc1ad065730768ee600c41511 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 26 Aug 2024 15:48:06 -0300 Subject: [PATCH] make it possible to have empty content on kind 1. fixes https://github.com/fiatjaf/nak/issues/32 --- event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.go b/event.go index 9925244..586f0d2 100644 --- a/event.go +++ b/event.go @@ -202,8 +202,8 @@ example: mustRehashAndResign = true } - if content := c.String("content"); content != "" { - evt.Content = content + if c.IsSet("content") { + evt.Content = c.String("content") mustRehashAndResign = true } else if evt.Content == "" && evt.Kind == 1 { evt.Content = "hello from the nostr army knife"