Merge pull request #11816 from annando/fetch-parents

New option to disable the fetching of parents
This commit is contained in:
Hypolite Petovan 2022-08-04 16:00:00 -04:00 committed by GitHub
commit 2e00797ebc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)) {