]> git.mxchange.org Git - friendica.git/commitdiff
Simplified else case
authorMichael <heluecht@pirati.ca>
Thu, 3 Nov 2022 04:27:30 +0000 (04:27 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 3 Nov 2022 04:27:30 +0000 (04:27 +0000)
src/Worker/Notifier.php

index 7bde2b9b92171bb648aeed5f4f5f7cd771c5ffa7..10fe6e3abceb0ac2d7c2fa956f10657a8bada33a 100644 (file)
@@ -783,7 +783,7 @@ class Notifier
                        }
 
                        Logger::info('Remote item will be distributed', ['id' => $target_item['id'], 'url' => $target_item['uri'], 'verb' => $target_item['verb']]);
-               } elseif ($parent['origin']) {
+               } else {
                        Logger::info('Remote activity will not be distributed', ['id' => $target_item['id'], 'url' => $target_item['uri'], 'verb' => $target_item['verb']]);
                        return ['count' => 0, 'contacts' => []];
                }