show cian for unnamed buildings only

This commit is contained in:
Arsentiy Milchakov 2017-08-10 16:38:02 +03:00 committed by Yuri Gorshenin
parent e63ead190c
commit a83b3f15f0

View file

@ -883,7 +883,8 @@ void Framework::FillInfoFromFeatureType(FeatureType const & ft, place_page::Info
LOG(LINFO, (url));
}
else if (cian::Api::IsCitySupported(city) &&
(buildingHolder.Equals({ft}) || ftypes::IsPublicTransportStopChecker::Instance()(ft)))
((buildingHolder.Equals({ft}) && !ft.HasName()) ||
ftypes::IsPublicTransportStopChecker::Instance()(ft)))
{
info.SetSponsoredType(SponsoredType::Cian);
info.SetSponsoredUrl(cian::Api::GetMainPageUrl());