]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/ParseUrl.php
messages.po and and corrected typo in comment
[friendica.git] / src / Util / ParseUrl.php
index 4611cf8efe5f25378caa699044543af6269bab4c..5b0bf6a5ca785849183ebf17c96b97f695837484 100644 (file)
@@ -567,6 +567,7 @@ class ParseUrl
                                                $image['width'] = $photodata[0];
                                                $image['height'] = $photodata[1];
                                                $image['contenttype'] = $photodata['mime'];
+                                               $image['blurhash'] = $photodata['blurhash'] ?? null;
                                                unset($image['url']);
                                                ksort($image);
                                        } else {
@@ -1131,6 +1132,8 @@ class ParseUrl
                $content = JsonLD::fetchElement($jsonld, 'logo', 'url', '@type', 'ImageObject');
                if (!empty($content) && is_string($content)) {
                        $jsonldinfo['publisher_img'] = trim($content);
+               } elseif (!empty($content) && is_array($content)) {
+                       $jsonldinfo['publisher_img'] = trim($content[0]);
                }
 
                $content = JsonLD::fetchElement($jsonld, 'brand', 'name', '@type', 'Organization');