]> git.mxchange.org Git - friendica.git/commitdiff
Added logging of unexpected follow messages
authorMichael <heluecht@pirati.ca>
Wed, 28 Sep 2022 16:32:17 +0000 (16:32 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 28 Sep 2022 16:32:17 +0000 (16:32 +0000)
src/Protocol/ActivityPub/Receiver.php

index 0cdbe82fc710b8c5fd94ade9ee5e16de9118689a..57f1089a36d093981003436ab49045d3efb658f2 100644 (file)
@@ -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 {