mirror of
https://github.com/fiatjaf/nak.git
synced 2024-10-30 00:59:07 -04:00
fix handling multiple lines in event (broken in previous commit).
This commit is contained in:
parent
4d75605c20
commit
30dbe2c1c0
4
event.go
4
event.go
|
@ -117,6 +117,7 @@ example:
|
|||
doAuth := c.Bool("auth")
|
||||
|
||||
// then process input and generate events
|
||||
nextline:
|
||||
for stdinEvent := range getStdinLinesOrBlank() {
|
||||
evt := nostr.Event{
|
||||
Tags: make(nostr.Tags, 0, 3),
|
||||
|
@ -228,7 +229,7 @@ example:
|
|||
if err == nil {
|
||||
// published fine probably
|
||||
log("%s.\n", status)
|
||||
goto end
|
||||
continue nextline
|
||||
}
|
||||
|
||||
// error publishing
|
||||
|
@ -254,7 +255,6 @@ example:
|
|||
}
|
||||
}
|
||||
|
||||
end:
|
||||
exitIfLineProcessingError(c)
|
||||
return nil
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user