From 1af52dd0509c46798979673844fb70484de2cac6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 21 Dec 2019 13:51:25 +0000 Subject: [PATCH] Fix: Newer Friendica servers had been detected as ActivityPub --- src/Model/GServer.php | 2 +- src/Module/NodeInfo.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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'], -- 2.39.5