fetch: fix panic on note1 codes, nip19.Decode returns an EventPointer for those.

This commit is contained in:
Yasuhiro Matsumoto
2026-07-15 11:00:41 +09:00
parent c16a456811
commit 58cfd06eab
+1 -1
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}