mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Improved streams detection
This commit is contained in:
parent
1f12d1e668
commit
846addf7b3
1 changed files with 3 additions and 0 deletions
|
@ -1589,6 +1589,9 @@ class GServer
|
|||
$name = 'nomad';
|
||||
$curlResult = DI::httpClient()->get($url . '/manifest', 'application/manifest+json', [HttpClientOptions::REQUEST => HttpClientRequest::SERVERINFO]);
|
||||
if (!$curlResult->isSuccess() || ($curlResult->getBodyString() == '')) {
|
||||
if ($curlResult->getReturnCode() == 418) {
|
||||
$name = 'streams';
|
||||
}
|
||||
return $name;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue