From: Michael Date: Sat, 10 Dec 2022 12:14:23 +0000 (+0000) Subject: Remove testcode, improve rearrange X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6496ed4c1910c39394eec8066dc7a2f958a16a1b;p=friendica.git Remove testcode, improve rearrange --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 9cdcd5fa89..a97f6f8110 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -134,10 +134,10 @@ class Probe } } - $newdata['networks'] = $data['networks'] ?? []; + $newdata['networks'] = []; foreach ([Protocol::DIASPORA, Protocol::OSTATUS] as $network) { - if (empty($newdata['networks'][$network])) { - unset($newdata['networks'][$network]); + if (!empty($data['networks'][$network])) { + $newdata['networks'][$network] = $data['networks'][$network]; } } diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index e5194ba3d0..fe5b27d334 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -4041,7 +4041,6 @@ class Diaspora if (!self::parentSupportDiaspora($item['thr-parent-id'])) { Logger::info('One of the parents does not support Diaspora. A signature will not be created.', ['uri-id' => $item['uri-id'], 'guid' => $item['guid']]); - echo "5"; return false; }