Fix Follow debug sequence
This commit is contained in:
parent
edfd52e35f
commit
b4880713d5
@ -47,9 +47,11 @@ try {
|
|||||||
try {
|
try {
|
||||||
if (!Subscription::exists($actor_profile, $object_profile)) {
|
if (!Subscription::exists($actor_profile, $object_profile)) {
|
||||||
Subscription::start($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
|
||||||
$postman = new Activitypub_postman($actor_profile);
|
$postman = new Activitypub_postman($actor_profile);
|
||||||
$postman->send(json_encode(Activitypub_accept::accept_to_array(Activitypub_follow::follow_to_array($data->actor, $data->object))), $object_aprofile->getInbox());
|
$postman->send(json_encode(Activitypub_accept::accept_to_array(Activitypub_follow::follow_to_array($data->actor, $data->object))), $object_aprofile->getInbox());
|
||||||
common_debug('ActivityPubPlugin: Accepted Follow request from '.$data->actor.' to '.$data->object);
|
|
||||||
ActivityPubReturn::answer('', 202);
|
ActivityPubReturn::answer('', 202);
|
||||||
} else {
|
} else {
|
||||||
common_debug('ActivityPubPlugin: Received a repeated Follow request from '.$data->actor.' to '.$data->object);
|
common_debug('ActivityPubPlugin: Received a repeated Follow request from '.$data->actor.' to '.$data->object);
|
||||||
|
Reference in New Issue
Block a user