Follow pubkey hints on nip 10 replies
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user