Simplified else case

This commit is contained in:
Michael 2022-11-03 04:27:30 +00:00
parent 1847347c3a
commit 12a352f441

View 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' => []];
}