summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain R. Learmonth <irl@fsfe.org>2018-02-14 14:17:25 +0000
committerIain R. Learmonth <irl@fsfe.org>2018-02-14 14:17:25 +0000
commit409e410b5c10666c202cd56b2ff42db0c0a8f766 (patch)
treec4b2c0453c36480da2536d3508b5c0eb63a926a3
parent0c69e4f0daf20c218777bbb09c01b16c1613a766 (diff)
Filters effective family to exclude the relay's fingerprint (Fixes: #25034)
-rw-r--r--js/models/relay.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/models/relay.js b/js/models/relay.js
index cd3078b..cfb6dec 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -196,7 +196,8 @@ define([
relay.obandwidth = (typeof relay.observed_bandwidth !== 'undefined') ? hrBandwidth(relay.observed_bandwidth) : null;
relay.bandwidth = (typeof relay.advertised_bandwidth !== 'undefined') ? relay.advertised_bandwidth : null;
relay.bandwidth_hr = (typeof relay.advertised_bandwidth !== 'undefined') ? hrBandwidth(relay.advertised_bandwidth) : null;
- relay.effective_family = relay.effective_family ? relay.effective_family : null;
+ // the filter here is a temporary fix, and can be removed again later if you notice that #25241 is fixed
+ relay.effective_family = relay.effective_family ? relay.effective_family.filter(function(x){return x !== relay.fingerprint}) : null;
relay.alleged_family = relay.alleged_family ? relay.alleged_family : null;
if (relay.is_bridge) {
var new_addresses = [];