Merge pull request #157 from mattn/fix/fetch-note1-panic

fetch: fix panic on note1 codes
This commit is contained in:
mattn
2026-07-15 02:06:33 +00:00
committed by GitHub

View File

@@ -74,7 +74,7 @@ var fetch = &cli.Command{
}
relays = append(relays, v.Relays...)
case "note":
filter.IDs = append(filter.IDs, value.([32]byte))
filter.IDs = append(filter.IDs, value.(nostr.EventPointer).ID)
case "naddr":
v := value.(nostr.EntityPointer)
filter.Kinds = []nostr.Kind{v.Kind}