From 9c3b4b69b6dc70cc0e6eecd10aced99a6480f10f Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 4 Jun 2026 10:50:53 +0900 Subject: [PATCH] req: actually decode bech32 values for single-letter --tag flags. --- req.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/req.go b/req.go index db79cec..efb22ce 100644 --- a/req.go +++ b/req.go @@ -595,8 +595,8 @@ func applyFlagsToFilter(c *cli.Command, filter *nostr.Filter) error { spl := strings.SplitN(tagFlag, "=", 2) if len(spl) == 2 { val := spl[1] - if len(spl) == 1 { - val = decodeTagValue(val, []rune(spl[0])[0]) + if len(spl[0]) == 1 { + val = decodeTagValue(val, rune(spl[0][0])) } tags = append(tags, flagTag{spl[0], val}) } else {