Add dummy id to follow
This commit is contained in:
parent
5c26e34f5a
commit
12b1fd7b1f
@ -50,11 +50,13 @@ class Activitypub_follow extends Managed_DataObject
|
|||||||
*/
|
*/
|
||||||
public static function follow_to_array($actor, $object)
|
public static function follow_to_array($actor, $object)
|
||||||
{
|
{
|
||||||
$res = array("@context" => "https://www.w3.org/ns/activitystreams",
|
$res = [
|
||||||
"type" => "Follow",
|
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||||
"actor" => $actor,
|
'id' => common_root_url().'follow_from_'.urlencode($actor).'_to_'.urlencode($object),
|
||||||
"object" => $object
|
'type' => 'Follow',
|
||||||
);
|
'actor' => $actor,
|
||||||
|
'object' => $object
|
||||||
|
];
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user