Merge pull request #11944 from annando/follow-object

Added logging of unexpected follow messages
This commit is contained in:
Hypolite Petovan 2022-09-28 14:35:56 -04:00 committed by GitHub
commit 89cc704b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -852,7 +852,11 @@ class Receiver
case 'as:Accept':
if ($object_data['object_type'] == 'as:Follow') {
if (!empty($object_data['object_actor'])) {
ActivityPub\Processor::acceptFollowUser($object_data);
} else {
Logger::notice('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 {