Restore partial condition in OEmbed block of ParseUrl::getSiteInfo
This commit is contained in:
parent
5b5e5ef4db
commit
102adf86ae
1 changed files with 11 additions and 8 deletions
|
@ -161,6 +161,8 @@ class ParseUrl
|
||||||
$siteinfo['type'] = $oembed_data->type;
|
$siteinfo['type'] = $oembed_data->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// See https://github.com/friendica/friendica/pull/5763#discussion_r217913178
|
||||||
|
if ($siteinfo['type'] != 'photo') {
|
||||||
if (isset($oembed_data->title)) {
|
if (isset($oembed_data->title)) {
|
||||||
$siteinfo['title'] = trim($oembed_data->title);
|
$siteinfo['title'] = trim($oembed_data->title);
|
||||||
}
|
}
|
||||||
|
@ -172,6 +174,7 @@ class ParseUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch the first mentioned charset. Can be in body or header
|
// Fetch the first mentioned charset. Can be in body or header
|
||||||
$charset = '';
|
$charset = '';
|
||||||
|
|
Loading…
Reference in a new issue