]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ParseUrl.php
Installer: install themes as last action
[friendica.git] / src / Module / ParseUrl.php
index ed48ea1b263a7ca5d88bfe6f68fc86e974caff74..8e72c4fa78160762408a3885bbc101f617007abe 100644 (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';