this code was never called because $body is never declared
and hence the if could never be true
protected function content(array $request = []): string
{
-
-
$results = [];
+
if (!empty($_REQUEST['source'])) {
try {
$source = json_decode($_REQUEST['source'], true);
throw new \Exception('No trust for activity type "' . $type . '", so we quit now.');
}
- if (!empty($body) && empty($object_data['raw'])) {
- $object_data['raw'] = $body;
- }
-
// Internal flag for thread completion. See Processor.php
if (!empty($activity['thread-completion'])) {
$object_data['thread-completion'] = $activity['thread-completion'];