Don't suggest shrinking media of direct photo links.

This commit is contained in:
John Preston 2023-10-29 08:51:42 +04:00
parent eaf30d58be
commit e64a096dca
1 changed files with 7 additions and 1 deletions

View File

@ -254,7 +254,13 @@ bool WebPageData::applyChanges(
}
return QString();
}();
if (newDocument || !newCollage.items.empty() || !newPhoto) {
const auto hasSiteName = !resultSiteName.isEmpty() ? 1 : 0;
const auto hasTitle = !resultTitle.isEmpty() ? 1 : 0;
const auto hasDescription = !newDescription.text.isEmpty() ? 1 : 0;
if (newDocument
|| !newCollage.items.empty()
|| !newPhoto
|| (hasSiteName + hasTitle + hasDescription < 2)) {
newHasLargeMedia = false;
}