mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-22 08:19:06 -05: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
|
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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user