Merge pull request #5744 from annando/fix-preview
Fix for #5732 - too much links had been detected as photos
This commit is contained in:
@@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user