Fix Accept ID
This commit is contained in:
parent
a17e83582c
commit
8f6c120620
@ -50,10 +50,13 @@ class Activitypub_accept extends Managed_DataObject
|
||||
public static function accept_to_array($object)
|
||||
{
|
||||
$res = [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'id' => common_root_url().'follow_from_'.urlencode($object['actor']).'_to_'.urlencode($object['object']),
|
||||
'actor' => $object['object'],
|
||||
'@context' => [
|
||||
'https://www.w3.org/ns/activitystreams',
|
||||
'https://w3id.org/security/v1'
|
||||
],
|
||||
'id' => common_root_url().'accept_follow_from_'.urlencode($object['actor']).'_to_'.urlencode($object['object']),
|
||||
'type' => 'Accept',
|
||||
'actor' => $object['object'],
|
||||
'object' => $object
|
||||
];
|
||||
return $res;
|
||||
|
@ -51,7 +51,10 @@ class Activitypub_follow extends Managed_DataObject
|
||||
public static function follow_to_array($actor, $object)
|
||||
{
|
||||
$res = [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'@context' => [
|
||||
'https://www.w3.org/ns/activitystreams',
|
||||
'https://w3id.org/security/v1'
|
||||
],
|
||||
'id' => common_root_url().'follow_from_'.urlencode($actor).'_to_'.urlencode($object),
|
||||
'type' => 'Follow',
|
||||
'actor' => $actor,
|
||||
|
Reference in New Issue
Block a user