Remove testcode, improve rearrange

This commit is contained in:
Michael 2022-12-10 12:14:23 +00:00
parent 019bb56668
commit 6496ed4c19
2 changed files with 3 additions and 4 deletions

View 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];
}
}

View 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;
}