3 * @file src/Worker/ProfileUpdate.php
4 * @brief Send updated profile data to Diaspora and ActivityPub
7 namespace Friendica\Worker;
9 use Friendica\BaseObject;
10 use Friendica\Protocol\Diaspora;
11 use Friendica\Protocol\ActivityPub;
12 use Friendica\Core\Worker;
15 public static function execute($uid = 0) {
20 $a = BaseObject::getApp();
22 $inboxes = ActivityPub::fetchTargetInboxesforUser($uid);
24 foreach ($inboxes as $inbox) {
25 logger('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub', LOGGER_DEBUG);
26 Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
27 'APDelivery', Delivery::PROFILEUPDATE, '', $inbox, $uid);
30 Diaspora::sendProfile($uid);