From 3be80c29dfe803c687c6fa57818b1d931797bcb6 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 22 Dec 2025 00:22:14 -0300 Subject: [PATCH] spell: fix listing recent. --- spell.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spell.go b/spell.go index 7238b18..55092d1 100644 --- a/spell.go +++ b/spell.go @@ -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)