]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Processor.php
Config for receiver / fix fatals
[friendica.git] / src / Protocol / ActivityPub / Processor.php
index 3b31e6d3c4bd5c5168da74700f4e5161290fd541..60dd42cb49349915ef1baee30a72cd6286689398 100644 (file)
@@ -303,7 +303,7 @@ class Processor
                if (empty($activity['directmessage']) && ($activity['id'] != $activity['reply-to-id']) && !Post::exists(['uri' => $activity['reply-to-id']])) {
                        $recursion_depth = $activity['recursion-depth'] ?? 0;
                        Logger::notice('Parent not found. Try to refetch it.', ['parent' => $activity['reply-to-id'], 'recursion-depth' => $recursion_depth]);
-                       if ($recursion_depth < 10) {
+                       if ($recursion_depth < DI::config()->get('system', 'max_recursion_depth')) {
                                $result = self::fetchMissingActivity($activity['reply-to-id'], $activity, '', Receiver::COMPLETION_AUTO);
                                if (empty($result) && self::isActivityGone($activity['reply-to-id'])) {
                                        // Recursively delete this and all depending entries