mirror of
https://github.com/friendica/friendica
synced 2024-11-13 13:42:53 +00:00
Merge pull request #5082 from annando/federation-warning
Avoid warning when no valid data could be read
This commit is contained in:
commit
931e9182ff
1 changed files with 4 additions and 2 deletions
|
@ -1527,10 +1527,12 @@ class PortableContact
|
|||
if ($serverdata) {
|
||||
$servers = json_decode($serverdata);
|
||||
|
||||
if (is_array($servers->pods)) {
|
||||
foreach ($servers->pods as $server) {
|
||||
Worker::add(PRIORITY_LOW, "DiscoverPoCo", "server", "https://".$server->host);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Disvover Mastodon servers
|
||||
if (!Config::get('system', 'ostatus_disabled')) {
|
||||
|
|
Loading…
Reference in a new issue