From 4ea0edc52ba3111081ec03e5321c086016258a54 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 2 Jul 2026 00:47:24 -0300 Subject: [PATCH] two blossom tweaks. --- blossom.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/blossom.go b/blossom.go index 0111e0f..6bc1e0c 100644 --- a/blossom.go +++ b/blossom.go @@ -238,6 +238,10 @@ if any of the files are not found the command will fail, otherwise it will succe hasError := false for _, hash := range c.Args().Slice() { + if len(hash) > 32 { + hash = hash[0:32] + } + err := client.Check(ctx, hash) if err != nil { hasError = true @@ -281,7 +285,7 @@ if any of the files are not found the command will fail, otherwise it will succe return err } out, _ := json.Marshal(bd) - stdout(out) + stdout(string(out)) return nil } @@ -300,7 +304,7 @@ if any of the files are not found the command will fail, otherwise it will succe continue } out, _ := json.Marshal(bd) - stdout(out) + stdout(string(out)) } exitIfLineProcessingError(ctx)