]> git.mxchange.org Git - friendica.git/commitdiff
Remove testcode, improve rearrange
authorMichael <heluecht@pirati.ca>
Sat, 10 Dec 2022 12:14:23 +0000 (12:14 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 10 Dec 2022 12:14:23 +0000 (12:14 +0000)
src/Network/Probe.php
src/Protocol/Diaspora.php

index 9cdcd5fa8956b767372aeb79ae3e289621447fc8..a97f6f8110cd74840eff19ca3aca65bddc3fc4c2 100644 (file)
@@ -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];
                        }
                }
 
index e5194ba3d0d4d3c23acb6812ccb8b2a02337c0be..fe5b27d334f313d0b1817ac1bafb46e09b925113 100644 (file)
@@ -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;
                }