3 * @file src/Worker/ProfileUpdate.php
4 * @brief Send updated profile data to Diaspora and ActivityPub
7 namespace Friendica\Worker;
9 use Friendica\Core\Logger;
10 use Friendica\Core\Worker;
12 use Friendica\Protocol\Diaspora;
13 use Friendica\Protocol\ActivityPub;
16 public static function execute($uid = 0) {
23 $inboxes = ActivityPub\Transmitter::fetchTargetInboxesforUser($uid);
25 foreach ($inboxes as $inbox) {
26 Logger::log('Profile update for user ' . $uid . ' to ' . $inbox .' via ActivityPub', Logger::DEBUG);
27 Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true],
28 'APDelivery', Delivery::PROFILEUPDATE, '', $inbox, $uid);
31 Diaspora::sendProfile($uid);