mirror of
https://github.com/fiatjaf/nak.git
synced 2025-12-09 17:18:50 +00:00
support fetch npub
This commit is contained in:
6
fetch.go
6
fetch.go
@@ -45,8 +45,14 @@ var fetch = &cli.Command{
|
|||||||
case "nprofile":
|
case "nprofile":
|
||||||
v := value.(nostr.ProfilePointer)
|
v := value.(nostr.ProfilePointer)
|
||||||
filter.Authors = append(filter.Authors, v.PublicKey)
|
filter.Authors = append(filter.Authors, v.PublicKey)
|
||||||
|
filter.Kinds = append(filter.Kinds, 0)
|
||||||
authorHint = v.PublicKey
|
authorHint = v.PublicKey
|
||||||
relays = v.Relays
|
relays = v.Relays
|
||||||
|
case "npub":
|
||||||
|
v := value.(string)
|
||||||
|
filter.Authors = append(filter.Authors, v)
|
||||||
|
filter.Kinds = append(filter.Kinds, 0)
|
||||||
|
authorHint = v
|
||||||
}
|
}
|
||||||
|
|
||||||
pool := nostr.NewSimplePool(c.Context)
|
pool := nostr.NewSimplePool(c.Context)
|
||||||
|
|||||||
Reference in New Issue
Block a user