"networks" has to contain all probing fields

This commit is contained in:
Michael 2022-12-10 12:35:05 +00:00
parent 6496ed4c19
commit c6ca844f33
1 changed files with 5 additions and 1 deletions

View File

@ -137,7 +137,11 @@ class Probe
$newdata['networks'] = [];
foreach ([Protocol::DIASPORA, Protocol::OSTATUS] as $network) {
if (!empty($data['networks'][$network])) {
$newdata['networks'][$network] = $data['networks'][$network];
$data['networks'][$network]['subscribe'] = $newdata['subscribe'] ?? '';
$data['networks'][$network]['baseurl'] = $newdata['baseurl'] ?? '';
$data['networks'][$network]['gsid'] = $newdata['gsid'] ?? 0;
$newdata['networks'][$network] = self::rearrangeData($data['networks'][$network]);
unset($newdata['networks'][$network]['networks']);
}
}