diff --git a/app/ledger.js b/app/ledger.js index 80e27546583..c6da3519b37 100644 --- a/app/ledger.js +++ b/app/ledger.js @@ -709,8 +709,7 @@ var synopsisNormalizer = () => { data[i] = { rank: i + 1, - // TBD: the `ledger-publisher` package does not currently report `verified` ... - verified: publisher.verified || false, + verified: (ledgerInfo._internal.verifiedPublishers || []).indexOf(results[i].publisher) !== -1, site: results[i].publisher, views: results[i].visits, duration: duration, @@ -954,6 +953,7 @@ var ledgerInfo = { exchangeInfo: undefined, _internal: { + verifiedPublishers: [], exchangeExpiry: 0, exchanges: {}, geoipExpiry: 0 @@ -1201,6 +1201,11 @@ var getStateInfo = (state) => { cacheReturnValue() } + if (!underscore.isEqual(ledgerInfo._internal.verifiedPublishers, state.verifiedPublishers)) { + ledgerInfo._internal.verifiedPublishers = state.verifiedPublishers + updatePublisherInfo() + } + ledgerInfo.transactions = [] if (!state.transactions) return updateLedgerInfo() diff --git a/package.json b/package.json index df883998fe0..a497ab7ed20 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "keytar": "^3.0.0", "l20n": "^3.5.1", "ledger-balance": "^0.8.61", - "ledger-client": "^0.8.89", + "ledger-client": "^0.8.90", "ledger-geoip": "^0.8.72", "ledger-publisher": "^0.8.89", "lru_cache": "^1.0.0",