From c6ca844f33cba1c4cf5bdfd2127f0fa751ea25b4 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 10 Dec 2022 12:35:05 +0000 Subject: [PATCH] "networks" has to contain all probing fields --- src/Network/Probe.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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']); } } -- 2.39.5