Use display_url instead of url for domain detection.

GitOrigin-RevId: e966418ddd25b33dc878b19f3e77f589e9db777a
This commit is contained in:
levlam 2020-03-03 01:24:25 +03:00
parent fa475244f7
commit 0ab2b00533

View File

@ -1136,7 +1136,7 @@ tl_object_ptr<td_api::webPage> WebPagesManager::get_web_page_object(WebPageId we
description.text = web_page->description; description.text = web_page->description;
description.entities = find_entities(web_page->description, true); description.entities = find_entities(web_page->description, true);
auto r_url = parse_url(web_page->url); auto r_url = parse_url(web_page->display_url);
if (r_url.is_ok()) { if (r_url.is_ok()) {
Slice host = r_url.ok().host_; Slice host = r_url.ok().host_;
if (!host.empty() && host.back() == '.') { if (!host.empty() && host.back() == '.') {