Fix: Newer Friendica servers had been detected as ActivityPub

pull/7983/head
Michael 2019-12-21 13:51:25 +00:00
rodzic f617e2a287
commit 1af52dd050
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -549,7 +549,7 @@ class GServer
$protocols[$protocol] = true; $protocols[$protocol] = true;
} }
if (!empty($protocols['friendica'])) { if (!empty($protocols['dfrn'])) {
$server['network'] = Protocol::DFRN; $server['network'] = Protocol::DFRN;
} elseif (!empty($protocols['activitypub'])) { } elseif (!empty($protocols['activitypub'])) {
$server['network'] = Protocol::ACTIVITYPUB; $server['network'] = Protocol::ACTIVITYPUB;

Wyświetl plik

@ -126,7 +126,7 @@ class NodeInfo extends BaseModule
$nodeinfo = [ $nodeinfo = [
'version' => '1.0', 'version' => '1.0',
'software' => [ 'software' => [
'name' => 'friendica', 'name' => 'Friendica',
'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION, 'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION,
], ],
'protocols' => [ 'protocols' => [
@ -191,7 +191,7 @@ class NodeInfo extends BaseModule
$nodeinfo = [ $nodeinfo = [
'version' => '2.0', 'version' => '2.0',
'software' => [ 'software' => [
'name' => 'friendica', 'name' => 'Friendica',
'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION, 'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION,
], ],
'protocols' => ['dfrn', 'activitypub'], 'protocols' => ['dfrn', 'activitypub'],