Tweak feed display

This commit is contained in:
Jon Staab
2025-04-25 17:17:18 -07:00
parent 37c0491d71
commit b3e8d7a332
6 changed files with 37 additions and 20 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ export type Selection = {
relays: string[]
}
const makeSelection = (relays: string[], weight = 1): Selection => ({
export const makeSelection = (relays: string[], weight = 1): Selection => ({
relays: relays.filter(isRelayUrl).map(normalizeRelayUrl),
weight,
})
@@ -322,7 +322,7 @@ export class RouterScenario {
}
const scoreRelay = (relay: string) => {
const quality = this.router.options.getRelayQuality?.(relay)
const quality = this.router.options.getRelayQuality?.(relay) || 1
const weight = relayWeights.get(relay)!
// Log the weight, since it's a straight count which ends up over-weighting hubs.