Browse Source

Merge pull request #7983 from annando/nodeinfo-dfrn

Fix: Newer Friendica servers had been detected as ActivityPub
pull/7985/head
Tobias Diekershoff 2 years ago
committed by GitHub
parent
commit
03ee62e845
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Model/GServer.php
  2. 4
      src/Module/NodeInfo.php

2
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;

4
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'],

Loading…
Cancel
Save