mirror of
https://github.com/friendica/friendica
synced 2025-04-24 01:50:17 +00:00
New option to disable the fetching of parents
This commit is contained in:
parent
196a1de7f2
commit
06f7244280
4 changed files with 34 additions and 8 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue