]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/ProfileUpdate.php
Don't add contacts when not needed
[friendica.git] / src / Worker / ProfileUpdate.php
index cebc27ca55b83644e14242ac627954ced123d660..8bc45ee33aede73626d985b048a7b0a5d1135d96 100644 (file)
@@ -6,10 +6,11 @@
 
 namespace Friendica\Worker;
 
-use Friendica\BaseObject;
+use Friendica\Core\Logger;
+use Friendica\Core\Worker;
+use Friendica\DI;
 use Friendica\Protocol\Diaspora;
 use Friendica\Protocol\ActivityPub;
-use Friendica\Core\Worker;
 
 class ProfileUpdate {
        public static function execute($uid = 0) {
@@ -17,12 +18,12 @@ class ProfileUpdate {
                        return;
                }
 
-               $a = BaseObject::getApp();
+               $a = DI::app();
 
                $inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser($uid);
 
                foreach ($inboxes as $inbox) {
-                       logger('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
+                       Logger::log('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub', Logger::DEBUG);
                        Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
                                'APDelivery', Delivery::PROFILEUPDATE, '', $inbox, $uid);
                }