Skip to content

Commit

Permalink
Fixes missing twitch image for clips
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Feb 27, 2019
1 parent ef13e49 commit e63f5b5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vendor/bat-native-ledger/src/bat_get_media.cc
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,27 @@ void BatGetMedia::onMediaPublisherActivity(ledger::Result result,
}
} else {
if (providerType == TWITCH_MEDIA_TYPE) {
if (info->verified && info->favicon_url.empty()) {
std::string publisher_name;
std::string publisher_favicon_url;
updateTwitchPublisherData(publisher_name,
publisher_favicon_url,
publisher_blob);

if (!publisher_favicon_url.empty()) {
savePublisherInfo(0,
media_key,
providerType,
visit_data.url,
publisher_name,
visit_data,
windowId,
publisher_favicon_url,
media_id);
return;
}
}

ledger_->OnPanelPublisherInfo(result, std::move(info), windowId);
} else if (providerType == YOUTUBE_MEDIA_TYPE) {
fetchPublisherDataFromDB(windowId,
Expand Down

0 comments on commit e63f5b5

Please sign in to comment.