https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f12d1e
)
Improved streams detection
author
Michael
<heluecht@pirati.ca>
Thu, 16 May 2024 15:26:46 +0000
(15:26 +0000)
committer
Michael
<heluecht@pirati.ca>
Thu, 16 May 2024 15:26:46 +0000
(15:26 +0000)
src/Model/GServer.php
patch
|
blob
|
history
diff --git
a/src/Model/GServer.php
b/src/Model/GServer.php
index
f4ef38e
..
8eb77bd
100644
(file)
--- a/
src/Model/GServer.php
+++ b/
src/Model/GServer.php
@@
-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;
}