]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/ProfileUpdate.php
Add search types
[friendica.git] / src / Worker / ProfileUpdate.php
index 7fab86cbfdb0f941aa7e860f35821a3cf6d9eb05..808d47299fe9455b034efee3999e6fffe1a4a4ae 100644 (file)
@@ -7,9 +7,10 @@
 namespace Friendica\Worker;
 
 use Friendica\BaseObject;
+use Friendica\Core\Logger;
+use Friendica\Core\Worker;
 use Friendica\Protocol\Diaspora;
 use Friendica\Protocol\ActivityPub;
-use Friendica\Core\Worker;
 
 class ProfileUpdate {
        public static function execute($uid = 0) {
@@ -19,10 +20,10 @@ class ProfileUpdate {
 
                $a = BaseObject::getApp();
 
-               $inboxes = ActivityPub::fetchTargetInboxesforUser($uid);
+               $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);
                }