From: Hypolite Petovan Date: Mon, 26 Dec 2022 14:11:37 +0000 (-0500) Subject: Fix wrong square bracket position in Worker\Delivery->deliverDFRN X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=482eeb71090720bc0af6ca7fbd7c8ba8ec7c3669;p=friendica.git Fix wrong square bracket position in Worker\Delivery->deliverDFRN - Address second part of https://github.com/friendica/friendica/issues/12488#issuecomment-1364487793 --- diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index 1a0758987a..195f9fdcab 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -213,7 +213,7 @@ class Delivery // Also transmit via Diaspora if this is a direct answer to a Diaspora comment. // This is done since the uri wouldn't match (Diaspora doesn't transmit it) // Also transmit relayed posts from Diaspora contacts via Diaspora. - if (($contact['network'] != Protocol::DIASPORA) && in_array(Protocol::DIASPORA, [$parent['network'] ?? '', $thr_parent['network'] ?? '', $target_item['network']] ?? '')) { + if (($contact['network'] != Protocol::DIASPORA) && in_array(Protocol::DIASPORA, [$parent['network'] ?? '', $thr_parent['network'] ?? '', $target_item['network'] ?? ''])) { Logger::info('Enforcing the Diaspora protocol', ['id' => $contact['id'], 'network' => $contact['network'], 'parent' => $parent['network'], 'thread-parent' => $thr_parent['network'], 'post' => $target_item['network']]); $contact['network'] = Protocol::DIASPORA; }