]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Newer Friendica servers had been detected as ActivityPub
authorMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 13:51:25 +0000 (13:51 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 21 Dec 2019 13:51:25 +0000 (13:51 +0000)
src/Model/GServer.php
src/Module/NodeInfo.php

index 43aa92f33eec96abf4164f424eed5cd2732189b4..41c8fa44bf9d77c150da3b4393e8cf163acd63a3 100644 (file)
@@ -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;
index deec94d93ffba7f787156625ea44acb61ce833e9..8e3692e3d37cfe1a9897f9ddb4a77ece1ef83714 100644 (file)
@@ -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'],