Restore previous state

This commit is contained in:
Michael 2020-03-03 22:22:59 +00:00
parent e38640da76
commit 986877b1cf
3 changed files with 3 additions and 7 deletions

View File

@ -209,7 +209,7 @@ class ActivityPub
foreach ($items as $activity) { foreach ($items as $activity) {
$ldactivity = JsonLD::compact($activity); $ldactivity = JsonLD::compact($activity);
ActivityPub\Receiver::processActivity($ldactivity, json_encode($activity), $uid, true); ActivityPub\Receiver::processActivity($ldactivity, '', $uid, true);
} }
} }

View File

@ -687,7 +687,7 @@ class Processor
$ldactivity['thread-completion'] = 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']]); Logger::notice('Activity had been fetched and processed.', ['url' => $url, 'object' => $activity['id']]);
return $activity['id']; return $activity['id'];

View File

@ -784,11 +784,7 @@ class Receiver
} }
if (in_array($type, self::CONTENT_TYPES)) { if (in_array($type, self::CONTENT_TYPES)) {
$object_data = self::processObject($object); return self::processObject($object);
if (!empty($data)) {
$object_data['raw'] = json_encode($data);
}
return $object_data;
} }
if ($type == 'as:Announce') { if ($type == 'as:Announce') {