foreach ($items as $activity) {
$ldactivity = JsonLD::compact($activity);
- ActivityPub\Receiver::processActivity($ldactivity, json_encode($activity), $uid, true);
+ ActivityPub\Receiver::processActivity($ldactivity, '', $uid, true);
}
}
$ldactivity['thread-completion'] = true;
- ActivityPub\Receiver::processActivity($ldactivity, json_encode($activity));
+ ActivityPub\Receiver::processActivity($ldactivity);
Logger::notice('Activity had been fetched and processed.', ['url' => $url, 'object' => $activity['id']]);
return $activity['id'];
}
if (in_array($type, self::CONTENT_TYPES)) {
- $object_data = self::processObject($object);
- if (!empty($data)) {
- $object_data['raw'] = json_encode($data);
- }
- return $object_data;
+ return self::processObject($object);
}
if ($type == 'as:Announce') {