From 757a6eb3132db11a1ff3f1c92edff7e722479344 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 20 Oct 2023 20:57:38 -0300 Subject: [PATCH] support fetch npub --- fetch.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fetch.go b/fetch.go index fa284be..6b6fd2f 100644 --- a/fetch.go +++ b/fetch.go @@ -45,8 +45,14 @@ var fetch = &cli.Command{ case "nprofile": v := value.(nostr.ProfilePointer) filter.Authors = append(filter.Authors, v.PublicKey) + filter.Kinds = append(filter.Kinds, 0) authorHint = v.PublicKey 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)