Merge branch 'fix-empty-preview' of github.com:annando/friendica into fix-empty-preview

This commit is contained in:
Michael 2020-09-17 13:13:49 +00:00
commit 451613a76a

View file

@ -554,7 +554,7 @@ class Feed
$data = PageInfo::queryUrl($item["plink"], false, $preview, ($contact["fetch_further_information"] == 2), $contact["ffi_keyword_denylist"] ?? ''); $data = PageInfo::queryUrl($item["plink"], false, $preview, ($contact["fetch_further_information"] == 2), $contact["ffi_keyword_denylist"] ?? '');
// Take the data that was provided by the feed if the query wasn't empty // Take the data that was provided by the feed if the query is empty
if (($data['type'] == 'link') && empty($data['title']) && empty($data['text'])) { if (($data['type'] == 'link') && empty($data['title']) && empty($data['text'])) {
$data['title'] = $saved_title; $data['title'] = $saved_title;
$item["body"] = $saved_body; $item["body"] = $saved_body;