Merge pull request #11816 from annando/fetch-parents
New option to disable the fetching of parents
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user