1
0
Fork 0

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) {
$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;
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'];

View file

@ -784,11 +784,7 @@ class Receiver
}
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') {