New option to disable the fetching of parents

This commit is contained in:
Michael 2022-08-04 19:32:36 +00:00
parent 196a1de7f2
commit 06f7244280
4 changed files with 34 additions and 8 deletions

View file

@ -308,6 +308,10 @@ class Processor
return [];
}
if (!DI::config()->get('system', 'fetch_parents')) {
$fetch_parents = false;
}
if ($fetch_parents && empty($activity['directmessage']) && ($activity['id'] != $activity['reply-to-id']) && !Post::exists(['uri' => $activity['reply-to-id']])) {
$result = self::fetchParent($activity);
if (!empty($result)) {