fix fetch naddr missing kind.

This commit is contained in:
fiatjaf 2024-08-28 16:13:19 -03:00
parent e0c967efa9
commit 8a934cc76b

View File

@ -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