Skip to content

Commit

Permalink
Merge pull request #186 from ryanml/banner-provider
Browse files Browse the repository at this point in the history
Adding provider to ledger::PublisherBanner
  • Loading branch information
Jason Sadler authored and NejcZdovc committed Dec 4, 2018
1 parent 48344ee commit 27f4c8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/bat/ledger/publisher_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ LEDGER_EXPORT struct PublisherBanner {
std::string background;
std::string logo;
std::vector<int> amounts;
std::string provider;
std::map<std::string, std::string> social;
};

Expand Down
1 change: 1 addition & 0 deletions src/bat/ledger/ledger.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ PublisherBanner::PublisherBanner(const PublisherBanner& info) :
background(info.background),
logo(info.logo),
amounts(info.amounts),
provider(info.provider),
social(info.social) {}

PublisherBanner::~PublisherBanner() {}
Expand Down
1 change: 1 addition & 0 deletions src/bat_publishers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ void BatPublishers::onPublisherBanner(ledger::PublisherBannerCallback callback,
}

new_banner->name = publisher_info->name;
new_banner->provider = publisher_info->provider;

if (new_banner->logo.empty()) {
new_banner->logo = publisher_info->favicon_url;
Expand Down

0 comments on commit 27f4c8b

Please sign in to comment.