From: Michael Date: Sat, 10 Dec 2022 12:35:05 +0000 (+0000) Subject: "networks" has to contain all probing fields X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6ca844f33cba1c4cf5bdfd2127f0fa751ea25b4;p=friendica.git "networks" has to contain all probing fields --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index a97f6f8110..e74b437345 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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']); } }