]> git.mxchange.org Git - friendica.git/blob - src/Worker/ProfileUpdate.php
9123f77e0630000816700af15f2d947dc7e1d4eb
[friendica.git] / src / Worker / ProfileUpdate.php
1 <?php
2 /**
3  * @file src/Worker/ProfileUpdate.php
4  * @brief Send updated profile data to Diaspora and ActivityPub
5  */
6
7 namespace Friendica\Worker;
8
9 use Friendica\Protocol\Diaspora;
10 use Friendica\Protocol\ActivityPub;
11
12 class ProfileUpdate {
13         public static function execute($uid = 0) {
14                 if (empty($uid)) {
15                         return;
16                 }
17
18                 ActivityPub::transmitProfileUpdate($uid);
19                 Diaspora::sendProfile($uid);
20         }
21 }