The direction field needs to be removed
This commit is contained in:
parent
986877b1cf
commit
8410c5e283
|
@ -135,6 +135,7 @@ class Conversation
|
|||
unset($arr['conversation-href']);
|
||||
unset($arr['protocol']);
|
||||
unset($arr['source']);
|
||||
unset($arr['direction']);
|
||||
|
||||
return $arr;
|
||||
}
|
||||
|
|
|
@ -687,7 +687,8 @@ 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,12 @@ 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 New Issue
Block a user