Follow pubkey hints on nip 10 replies

This commit is contained in:
Jon Staab
2025-06-16 08:55:49 -07:00
parent 49fecd2291
commit 535acbde3d
+5 -6
View File
@@ -218,12 +218,11 @@ export class Router {
const tags: string[][] = (ancestorTags as any)[type] || [] const tags: string[][] = (ancestorTags as any)[type] || []
return this.scenario( return this.scenario(
tags.flatMap(([_, value, relay, pubkey]) => { tags.flatMap(([_, value, relay, ...pubkeys]) => {
const selections = [makeSelection(this.ForUser().getUrls(), 0.5)] const selections = [
makeSelection(this.ForUser().getUrls(), 0.5),
if (pubkey) { makeSelection(this.FromPubkeys(pubkeys).getUrls()),
selections.push(makeSelection(this.FromPubkey(pubkey).getUrls())) ]
}
if (relay) { if (relay) {
selections.push(makeSelection([relay], 0.9)) selections.push(makeSelection([relay], 0.9))