From 12a352f4414825c5c057720d7de9c261fb770662 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 3 Nov 2022 04:27:30 +0000 Subject: [PATCH] Simplified else case --- src/Worker/Notifier.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 7bde2b9b92..10fe6e3abc 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -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' => []]; }