Handle non-unique relay urls passed to publish/request
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user