From ab3fed96433c53bd2df34c1c87f37d7f0f208f8b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 27 Feb 2021 21:02:06 +0000 Subject: [PATCH] Fix link preview with videos --- src/Module/ParseUrl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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';