Fix for #5732 - too much links had been detected as photos

This commit is contained in:
Michael 2018-09-07 06:10:33 +00:00
parent 480d792356
commit 99244d33f5
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ class ParseUrl
} }
// Prevent to have a photo type without an image // Prevent to have a photo type without an image
if (empty($siteinfo['image']) && ($siteinfo['type'] == 'photo')) { if ((empty($siteinfo['image']) || !empty($siteinfo['text'])) && ($siteinfo['type'] == 'photo')) {
$siteinfo['type'] = 'link'; $siteinfo['type'] = 'link';
} }