mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
commit
a10f55bb85
2 changed files with 7 additions and 3 deletions
|
@ -2164,9 +2164,11 @@ class GServer
|
|||
if ($curlResult->isSuccess()) {
|
||||
$servers = json_decode($curlResult->getBody(), true);
|
||||
|
||||
foreach ($servers['instances'] as $server) {
|
||||
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
|
||||
self::add($url);
|
||||
if (!empty($servers['instances'])) {
|
||||
foreach ($servers['instances'] as $server) {
|
||||
$url = (is_null($server['https_score']) ? 'http' : 'https') . '://' . $server['name'];
|
||||
self::add($url);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue