]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/ProfileUpdate.php
Detection of local requests
[friendica.git] / src / Worker / ProfileUpdate.php
index f33811ef6b93cecb8c4fbfaf3b416c5798c644cf..c5096636178c27c2cafcb37a9802383fa5c1916c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -40,10 +40,10 @@ class ProfileUpdate {
 
                $inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser($uid);
 
-               foreach ($inboxes as $inbox) {
+               foreach ($inboxes as $inbox => $receivers) {
                        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);
+                               'APDelivery', Delivery::PROFILEUPDATE, 0, $inbox, $uid, $receivers);
                }
 
                Diaspora::sendProfile($uid);