sdk: fix missing preemptive fallback to blank pubkey on FetchProfileMetadata().

This commit is contained in:
fiatjaf 2025-01-23 14:41:04 -03:00
parent 85c268b8e2
commit 8d805b39bf

View File

@ -98,6 +98,8 @@ func (sys *System) FetchProfileMetadata(ctx context.Context, pubkey string) (pm
return v
}
pm.PubKey = pubkey
res, _ := sys.StoreRelay.QuerySync(ctx, nostr.Filter{Kinds: []int{0}, Authors: []string{pubkey}})
if len(res) != 0 {
// ok, we found something locally