mirror of
https://github.com/friendica/friendica
synced 2025-05-07 23:04:10 +02:00
Added logging and one more reason for a notice found (#5538)
* Added logging and one more reason for a notice found * And one more
This commit is contained in:
parent
9d0f18c0b3
commit
1afc0ab028
3 changed files with 14 additions and 8 deletions
|
@ -659,6 +659,10 @@ class PortableContact
|
|||
$nodeinfo2_url = '';
|
||||
|
||||
foreach ($nodeinfo['links'] as $link) {
|
||||
if (!is_array($link) || empty($link['rel'])) {
|
||||
logger('Invalid nodeinfo format for ' . $server_url, LOGGER_DEBUG);
|
||||
continue;
|
||||
}
|
||||
if ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/1.0') {
|
||||
$nodeinfo1_url = $link['href'];
|
||||
} elseif ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/2.0') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue