mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Merge pull request #14166 from annando/streams
Improved streams detection
This commit is contained in:
commit
bda829665e
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