Browse Source

Merge pull request #7758 from annando/fix-probe

Fix: Friendica contacts had falsely been detected as ActivityPub
pull/7760/head
Tobias Diekershoff 2 years ago
committed by GitHub
parent
commit
49c05036ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Network/Probe.php

2
src/Network/Probe.php

@ -348,7 +348,7 @@ class Probe
if (!self::$istimeout) {
$ap_profile = ActivityPub::probeProfile($uri);
if (empty($data) || (!empty($ap_profile) && empty($network) && (($data['network'] ?? '') == Protocol::DFRN))) {
if (empty($data) || (!empty($ap_profile) && empty($network) && (($data['network'] ?? '') != Protocol::DFRN))) {
$data = $ap_profile;
} elseif (!empty($ap_profile)) {
$ap_profile['batch'] = '';

Loading…
Cancel
Save