mirror of
https://github.com/friendica/friendica
synced 2025-04-23 13:50:11 +00:00
Merge pull request #11816 from annando/fetch-parents
New option to disable the fetching of parents
This commit is contained in:
commit
2e00797ebc
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