mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-08 16:48:51 +00:00
fix fetch naddr missing kind.
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user