1
0
Fork 0
mirror of https://git.friendi.ca/friendica/friendica.git synced 2025-08-25 22:44:02 +00:00

Fix link preview with videos

This commit is contained in:
Michael 2021-02-27 21:02:06 +00:00
parent e2ba42fe8d
commit ab3fed9643

View file

@ -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';