mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
Fix for #5732 - too much links had been detected as photos
This commit is contained in:
parent
480d792356
commit
99244d33f5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue