From: Michael Date: Sat, 27 Feb 2021 21:02:06 +0000 (+0000) Subject: Fix link preview with videos X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab3fed96433c53bd2df34c1c87f37d7f0f208f8b;p=friendica.git Fix link preview with videos --- diff --git a/src/Module/ParseUrl.php b/src/Module/ParseUrl.php index ed48ea1b26..8e72c4fa78 100644 --- a/src/Module/ParseUrl.php +++ b/src/Module/ParseUrl.php @@ -96,7 +96,8 @@ class ParseUrl extends BaseModule if ($format == 'json') { $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']) { case 'video': $content_type = 'video';