Handle non-unique relay urls passed to publish/request

This commit is contained in:
Jon Staab
2025-04-07 14:42:35 -07:00
parent 31064d2324
commit 7fe58f4bdf
3 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ export type Selection = {
}
const makeSelection = (relays: string[], weight = 1): Selection => ({
relays: relays.map(normalizeRelayUrl),
relays: relays.filter(isRelayUrl).map(normalizeRelayUrl),
weight,
})