spell: fix listing recent.

This commit is contained in:
fiatjaf
2025-12-22 00:22:14 -03:00
parent e01cfbde47
commit 3be80c29df

View File

@@ -54,6 +54,10 @@ var spell = &cli.Command{
if c.Args().Len() == 0 {
// check if we have input from stdin
for stdinEvent := range getJsonsOrBlank() {
if stdinEvent == "{}" {
break
}
var spell nostr.Event
if err := json.Unmarshal([]byte(stdinEvent), &spell); err != nil {
return fmt.Errorf("failed to parse spell event from stdin: %w", err)