mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-20 16:32:27 +02:00
sdk: fix missing preemptive fallback to blank pubkey on FetchProfileMetadata().
This commit is contained in:
@ -98,6 +98,8 @@ func (sys *System) FetchProfileMetadata(ctx context.Context, pubkey string) (pm
|
|||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pm.PubKey = pubkey
|
||||||
|
|
||||||
res, _ := sys.StoreRelay.QuerySync(ctx, nostr.Filter{Kinds: []int{0}, Authors: []string{pubkey}})
|
res, _ := sys.StoreRelay.QuerySync(ctx, nostr.Filter{Kinds: []int{0}, Authors: []string{pubkey}})
|
||||||
if len(res) != 0 {
|
if len(res) != 0 {
|
||||||
// ok, we found something locally
|
// ok, we found something locally
|
||||||
|
Reference in New Issue
Block a user