First unstable federation release
This commit is contained in:
@@ -50,12 +50,15 @@ class Activitypub_create extends Managed_DataObject
|
||||
*/
|
||||
public static function create_to_array($id, $actor, $object)
|
||||
{
|
||||
$res = array("@context" => "https://www.w3.org/ns/activitystreams",
|
||||
"id" => $id,
|
||||
"type" => "Create",
|
||||
"actor" => $actor,
|
||||
"object" => $object
|
||||
);
|
||||
$res = [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'id' => $id,
|
||||
'type' => 'Create',
|
||||
'to' => $object['to'],
|
||||
'cc' => $object['cc'],
|
||||
'actor' => $actor,
|
||||
'object' => $object
|
||||
];
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user