mirror of
https://github.com/friendica/friendica
synced 2025-05-01 08:24:23 +02:00
commit
a10f55bb85
2 changed files with 7 additions and 3 deletions
|
@ -1131,6 +1131,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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue