mirror of
https://github.com/fiatjaf/nak.git
synced 2026-08-02 01:43:05 +02:00
Merge pull request #157 from mattn/fix/fetch-note1-panic
fetch: fix panic on note1 codes
This commit is contained in:
2
fetch.go
2
fetch.go
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user