Increase limit when using PublishEvent

This commit is contained in:
Jon Staab
2025-10-03 08:44:14 -07:00
parent 0ab74612bf
commit f8dfeee60c
+5 -3
View File
@@ -244,11 +244,13 @@ export class Router {
PublishEvent = (event: TrustedEvent) => {
const pubkeys = getPubkeyTagValues(event.tags)
return this.merge([
const scenarios = [
this.FromPubkey(event.pubkey),
...pubkeys.map(pubkey => this.ForPubkey(pubkey).weight(0.5)),
])
]
// Override the limit to ensure deliverability even when lots of pubkeys are mentioned
return this.merge(scenarios).limit(30)
}
}