mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-22 08:19:06 -05:00
fix fetch naddr missing kind.
This commit is contained in:
parent
e0c967efa9
commit
8a934cc76b
1
fetch.go
1
fetch.go
|
@ -73,6 +73,7 @@ var fetch = &cli.Command{
|
||||||
filter.IDs = append(filter.IDs, value.(string))
|
filter.IDs = append(filter.IDs, value.(string))
|
||||||
case "naddr":
|
case "naddr":
|
||||||
v := value.(nostr.EntityPointer)
|
v := value.(nostr.EntityPointer)
|
||||||
|
filter.Kinds = []int{v.Kind}
|
||||||
filter.Tags = nostr.TagMap{"d": []string{v.Identifier}}
|
filter.Tags = nostr.TagMap{"d": []string{v.Identifier}}
|
||||||
filter.Authors = append(filter.Authors, v.PublicKey)
|
filter.Authors = append(filter.Authors, v.PublicKey)
|
||||||
authorHint = v.PublicKey
|
authorHint = v.PublicKey
|
||||||
|
|
Loading…
Reference in New Issue
Block a user