mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Reduce the load of "gfollower"
This commit is contained in:
parent
2b5ef80912
commit
f27900ad78
9 changed files with 50 additions and 10 deletions
|
@ -1621,6 +1621,9 @@ class Contact
|
|||
// Update the gcontact entry
|
||||
if ($uid == 0) {
|
||||
GContact::updateFromPublicContactID($contact_id);
|
||||
if (($data['network'] == Protocol::ACTIVITYPUB) && in_array(DI::config()->get('system', 'gcontact_discovery'), [GContact::DISCOVERY_DIRECT, GContact::DISCOVERY_RECURSIVE])) {
|
||||
GContact::discoverFollowers($data['url']);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue