diff --git a/vendor/bat-native-ledger/src/bat_publishers.cc b/vendor/bat-native-ledger/src/bat_publishers.cc index aeb9f6bf0b5f..99cb8ad02ef7 100644 --- a/vendor/bat-native-ledger/src/bat_publishers.cc +++ b/vendor/bat-native-ledger/src/bat_publishers.cc @@ -303,7 +303,7 @@ std::unique_ptr BatPublishers::onPublisherInfoUpdated( return info; } - synopsisNormalizer(*info); + synopsisNormalizer(); return info; } @@ -367,7 +367,7 @@ void BatPublishers::onSetPublisherInfo(ledger::Result result, if (result != ledger::Result::LEDGER_OK) { return; } - synopsisNormalizer(*publisher_info); + synopsisNormalizer(); } void BatPublishers::onSetPanelExcludeInternal(ledger::PUBLISHER_EXCLUDE exclude, @@ -418,6 +418,7 @@ void BatPublishers::OnRestorePublishersInternal(bool success) { if (success) { setNumExcludedSites(0); OnExcludedSitesChanged(""); + synopsisNormalizer(); } else { BLOG(ledger_, ledger::LogLevel::LOG_ERROR) << "Could not restore publishers."; @@ -558,7 +559,7 @@ void BatPublishers::synopsisNormalizerInternal( } } -void BatPublishers::synopsisNormalizer(const ledger::PublisherInfo& info) { +void BatPublishers::synopsisNormalizer() { auto filter = CreateActivityFilter("", ledger::ACTIVITY_MONTH::ANY, -1, diff --git a/vendor/bat-native-ledger/src/bat_publishers.h b/vendor/bat-native-ledger/src/bat_publishers.h index c383e8018441..531e80bb02a9 100644 --- a/vendor/bat-native-ledger/src/bat_publishers.h +++ b/vendor/bat-native-ledger/src/bat_publishers.h @@ -177,7 +177,7 @@ class BatPublishers : public ledger::LedgerCallbackHandler { void calcScoreConsts(); - void synopsisNormalizer(const ledger::PublisherInfo& info); + void synopsisNormalizer(); void synopsisNormalizerInternal(ledger::PublisherInfoList* newList, bool saveData, const ledger::PublisherInfoList& list, uint32_t /* next_record */);