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

View file

@ -333,7 +333,7 @@ class ParseUrl
}
// 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';
}