mirror of
https://github.com/friendica/friendica
synced 2024-11-19 19:43:41 +00:00
Merge pull request #9964 from annando/fix-link-preview
Fix link preview with videos
This commit is contained in:
commit
a5dde7a69b
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ class ParseUrl extends BaseModule
|
||||||
if ($format == 'json') {
|
if ($format == 'json') {
|
||||||
$siteinfo = Util\ParseUrl::getSiteinfoCached($url);
|
$siteinfo = Util\ParseUrl::getSiteinfoCached($url);
|
||||||
|
|
||||||
if (in_array($siteinfo['type'], ['image', 'video', 'audio'])) {
|
if (empty($siteinfo['title']) && empty($siteinfo['text']) && empty($siteinfo['image'])
|
||||||
|
&& in_array($siteinfo['type'], ['image', 'video', 'audio'])) {
|
||||||
switch ($siteinfo['type']) {
|
switch ($siteinfo['type']) {
|
||||||
case 'video':
|
case 'video':
|
||||||
$content_type = 'video';
|
$content_type = 'video';
|
||||||
|
|
Loading…
Reference in a new issue