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