mirror of
https://github.com/friendica/friendica
synced 2025-05-08 19:44:10 +02:00
Replace App with AppHelper in Worker classes
This commit is contained in:
parent
1d5fc6a4bf
commit
60a9833130
6 changed files with 23 additions and 23 deletions
|
@ -30,13 +30,13 @@ class ProfileUpdate {
|
|||
return;
|
||||
}
|
||||
|
||||
$a = DI::app();
|
||||
$appHelper = DI::apphelper();
|
||||
|
||||
$inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser($uid);
|
||||
|
||||
foreach ($inboxes as $inbox => $receivers) {
|
||||
Logger::info('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub');
|
||||
Worker::add(['priority' => $a->getQueueValue('priority'), 'created' => $a->getQueueValue('created'), 'dont_fork' => true],
|
||||
Worker::add(['priority' => $appHelper->getQueueValue('priority'), 'created' => $appHelper->getQueueValue('created'), 'dont_fork' => true],
|
||||
'APDelivery',
|
||||
Delivery::PROFILEUPDATE,
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue