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:
Michael Vogel 2018-08-01 08:47:18 +02:00 committed by Tobias Diekershoff
parent 9d0f18c0b3
commit 1afc0ab028
3 changed files with 14 additions and 8 deletions

View file

@ -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') {