mirror of
https://github.com/friendica/friendica
synced 2025-04-23 03:10:12 +00:00
Config for receiver / fix fatals
This commit is contained in:
parent
f0499e7269
commit
b63ad63c29
5 changed files with 14 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue