make it possible to have empty content on kind 1.

fixes https://github.com/fiatjaf/nak/issues/32
This commit is contained in:
fiatjaf 2024-08-26 15:48:06 -03:00
parent 6d23509d8c
commit 36c32ae308

View File

@ -202,8 +202,8 @@ example:
mustRehashAndResign = true mustRehashAndResign = true
} }
if content := c.String("content"); content != "" { if c.IsSet("content") {
evt.Content = content evt.Content = c.String("content")
mustRehashAndResign = true mustRehashAndResign = true
} else if evt.Content == "" && evt.Kind == 1 { } else if evt.Content == "" && evt.Kind == 1 {
evt.Content = "hello from the nostr army knife" evt.Content = "hello from the nostr army knife"