mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 15:54:27 +02:00
Reduce the amount of "UpdateContact" worker calls
This commit is contained in:
parent
4bb0fdc9a9
commit
e0e2e45b91
6 changed files with 89 additions and 18 deletions
|
@ -1530,6 +1530,12 @@ class Processor
|
|||
|
||||
$ldactivity['recursion-depth'] = !empty($child['recursion-depth']) ? $child['recursion-depth'] + 1 : 0;
|
||||
|
||||
if ($object_actor != $actor) {
|
||||
Contact::updateByUrlIfNeeded($object_actor);
|
||||
}
|
||||
|
||||
Contact::updateByUrlIfNeeded($actor);
|
||||
|
||||
if (!empty($relay_actor)) {
|
||||
$ldactivity['thread-completion'] = $ldactivity['from-relay'] = Contact::getIdForURL($relay_actor);
|
||||
$ldactivity['completion-mode'] = Receiver::COMPLETION_RELAY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue