]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong square bracket position in Worker\Delivery->deliverDFRN
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 26 Dec 2022 14:11:37 +0000 (09:11 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 26 Dec 2022 14:11:37 +0000 (09:11 -0500)
- Address second part of https://github.com/friendica/friendica/issues/12488#issuecomment-1364487793

src/Worker/Delivery.php

index 1a0758987aa98554f95f9e0e35979809f93c8a4f..195f9fdcabe2dff0816e2c8b8b68618ded4b971c 100644 (file)
@@ -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;
                }