Added logging of unexpected follow messages
This commit is contained in:
parent
fa71ec462b
commit
d821afb418
1 changed files with 5 additions and 1 deletions
|
@ -852,7 +852,11 @@ class Receiver
|
|||
|
||||
case 'as:Accept':
|
||||
if ($object_data['object_type'] == 'as:Follow') {
|
||||
ActivityPub\Processor::acceptFollowUser($object_data);
|
||||
if (!empty($object_data['object_actor'])) {
|
||||
ActivityPub\Processor::acceptFollowUser($object_data);
|
||||
} else {
|
||||
Logger::debug('Unhandled "accept follow" message.', ['object_data' => $object_data]);
|
||||
}
|
||||
} elseif (in_array($object_data['object_type'], self::CONTENT_TYPES)) {
|
||||
ActivityPub\Processor::createActivity($object_data, Activity::ATTEND);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue