Fix shared links layout for webpage previews.

Fixes #4489.
This commit is contained in:
John Preston 2018-03-13 13:29:56 +03:00
parent 7de15ce5cf
commit 999fa39d7c

View File

@ -1233,10 +1233,7 @@ Link::Link(
}
}
// #TODO webpage
//_page = (media && media->type() == MediaTypeWebPage)
// ? static_cast<HistoryWebPage*>(media)->webpage().get()
// : nullptr;
_page = media ? media->webpage() : nullptr;
if (_page) {
mainUrl = _page->url;
if (_page->document) {