<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
if ($format == 'json') {
$siteinfo = Util\ParseUrl::getSiteinfoCached($url);
- if (empty($siteinfo['title']) && empty($siteinfo['text']) && empty($siteinfo['image'])
- && in_array($siteinfo['type'], ['image', 'video', 'audio'])) {
+ if (in_array($siteinfo['type'], ['image', 'video', 'audio'])) {
switch ($siteinfo['type']) {
case 'video':
$content_type = 'video';