"networks" has to contain all probing fields
This commit is contained in:
parent
6496ed4c19
commit
c6ca844f33
1 changed files with 5 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue