commit f8b1a067011c035575eb3df5505ad000f46e2334 Author: Iain R. Learmonth irl@fsfe.org Date: Wed Aug 9 13:52:31 2017 +0100
Revert "Hash the fingerprints from summary documents"
This reverts commit 40426f09f37ff84f93f20f156ab638ce27ff977a. --- js/collections/results.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/js/collections/results.js b/js/collections/results.js index 54cd36a..c341321 100644 --- a/js/collections/results.js +++ b/js/collections/results.js @@ -3,9 +3,8 @@ define([ 'jquery', 'underscore', 'backbone', - 'models/relay', - 'jssha' -], function($, _, Backbone, relayModel, jsSHA){ + 'models/relay' +], function($, _, Backbone, relayModel){ var resultsCollection = Backbone.Collection.extend({ model: relayModel, baseurl: 'https://onionoo.torproject.org/summary?search=', @@ -25,12 +24,12 @@ define([ } _.each(response.relays, function(relay, resultsC) { crelay = new relayModel; - crelay.fingerprint = new jsSHA(relay.f, "HEX").getHash("SHA-1", "HEX").toUpperCase(); + crelay.fingerprint = relay.f; relays.push(crelay); }); _.each(response.bridges, function(relay, resultsC) { crelay = new relayModel; - crelay.fingerprint = new jsSHA(relay.h, "HEX").getHash("SHA-1", "HEX").toUpperCase(); + crelay.fingerprint = relay.h; relays.push(crelay); }); if (relays.length == 0) {