mirror of
https://github.com/friendica/friendica
synced 2024-11-10 05:02:58 +00:00
The original content of the post hadn't always been stored
This commit is contained in:
parent
d63e903d9f
commit
e38640da76
3 changed files with 7 additions and 3 deletions
|
@ -209,7 +209,7 @@ class ActivityPub
|
|||
|
||||
foreach ($items as $activity) {
|
||||
$ldactivity = JsonLD::compact($activity);
|
||||
ActivityPub\Receiver::processActivity($ldactivity, '', $uid, true);
|
||||
ActivityPub\Receiver::processActivity($ldactivity, json_encode($activity), $uid, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -687,7 +687,7 @@ class Processor
|
|||
|
||||
$ldactivity['thread-completion'] = true;
|
||||
|
||||
ActivityPub\Receiver::processActivity($ldactivity);
|
||||
ActivityPub\Receiver::processActivity($ldactivity, json_encode($activity));
|
||||
Logger::notice('Activity had been fetched and processed.', ['url' => $url, 'object' => $activity['id']]);
|
||||
|
||||
return $activity['id'];
|
||||
|
|
|
@ -784,7 +784,11 @@ class Receiver
|
|||
}
|
||||
|
||||
if (in_array($type, self::CONTENT_TYPES)) {
|
||||
return self::processObject($object);
|
||||
$object_data = self::processObject($object);
|
||||
if (!empty($data)) {
|
||||
$object_data['raw'] = json_encode($data);
|
||||
}
|
||||
return $object_data;
|
||||
}
|
||||
|
||||
if ($type == 'as:Announce') {
|
||||
|
|
Loading…
Reference in a new issue