mirror of
https://github.com/fiatjaf/nak.git
synced 2026-06-04 17:51:15 +02:00
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:
4
req.go
4
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 {
|
||||
|
||||
Reference in New Issue
Block a user