mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 00:59:07 -04:00
make it possible to have empty content on kind 1.
fixes https://github.com/fiatjaf/nak/issues/32
This commit is contained in:
parent
6d23509d8c
commit
36c32ae308
4
event.go
4
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user