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