mirror of
https://github.com/friendica/friendica
synced 2024-10-10 09:22:00 +02:00
Fix: Newer Friendica servers had been detected as ActivityPub
This commit is contained in:
parent
f617e2a287
commit
1af52dd050
|
@ -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;
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue