Merge pull request #137 from mattn/fix/req-tag-decode-dead-code

req: actually decode bech32 values for single-letter --tag flags
This commit is contained in:
mattn
2026-06-04 01:51:56 +00:00
committed by GitHub

4
req.go
View File

@@ -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 {