Fix typos on AP Accept class
This commit is contained in:
parent
372a65b423
commit
a17e83582c
@ -54,7 +54,8 @@ if (!Subscription::exists($actor_profile, $object_profile)) {
|
||||
Subscription::start($actor_profile, $object_profile);
|
||||
common_debug('ActivityPubPlugin: Accepted Follow request from '.$data->actor.' to '.$data->object);
|
||||
|
||||
// Send Accept back
|
||||
// Notify remote instance that we have accepted their request
|
||||
common_debug('ActivityPubPlugin: Notifying remote instance that we have accepted their Follow request request from '.$data->actor.' to '.$data->object);
|
||||
$postman = new Activitypub_postman($actor_profile);
|
||||
$postman->send(json_encode(Activitypub_accept::accept_to_array(Activitypub_follow::follow_to_array($data->actor, $data->object))), $actor_aprofile->get_inbox());
|
||||
ActivityPubReturn::answer('', 202);
|
||||
|
@ -51,8 +51,8 @@ class Activitypub_accept extends Managed_DataObject
|
||||
{
|
||||
$res = [
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'id' => common_root_url().'follow_from_'.urlencode($object->actor).'_to_'.urlencode($object->object),
|
||||
'actor' => $object->object,
|
||||
'id' => common_root_url().'follow_from_'.urlencode($object['actor']).'_to_'.urlencode($object['object']),
|
||||
'actor' => $object['object'],
|
||||
'type' => 'Accept',
|
||||
'object' => $object
|
||||
];
|
||||
|
Reference in New Issue
Block a user