From: Michael Date: Sat, 21 Dec 2019 13:51:25 +0000 (+0000) Subject: Fix: Newer Friendica servers had been detected as ActivityPub X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1af52dd0509c46798979673844fb70484de2cac6;p=friendica.git Fix: Newer Friendica servers had been detected as ActivityPub --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 43aa92f33e..41c8fa44bf 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -549,7 +549,7 @@ class GServer $protocols[$protocol] = true; } - if (!empty($protocols['friendica'])) { + if (!empty($protocols['dfrn'])) { $server['network'] = Protocol::DFRN; } elseif (!empty($protocols['activitypub'])) { $server['network'] = Protocol::ACTIVITYPUB; diff --git a/src/Module/NodeInfo.php b/src/Module/NodeInfo.php index deec94d93f..8e3692e3d3 100644 --- a/src/Module/NodeInfo.php +++ b/src/Module/NodeInfo.php @@ -126,7 +126,7 @@ class NodeInfo extends BaseModule $nodeinfo = [ 'version' => '1.0', 'software' => [ - 'name' => 'friendica', + 'name' => 'Friendica', 'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION, ], 'protocols' => [ @@ -191,7 +191,7 @@ class NodeInfo extends BaseModule $nodeinfo = [ 'version' => '2.0', 'software' => [ - 'name' => 'friendica', + 'name' => 'Friendica', 'version' => FRIENDICA_VERSION . '-' . DB_UPDATE_VERSION, ], 'protocols' => ['dfrn', 'activitypub'],