friendica/src/Worker/ProfileUpdate.php
2018-09-30 20:26:30 +00:00

21 lines
399 B
PHP

<?php
/**
* @file src/Worker/ProfileUpdate.php
* @brief Send updated profile data to Diaspora and ActivityPub
*/
namespace Friendica\Worker;
use Friendica\Protocol\Diaspora;
use Friendica\Protocol\ActivityPub;
class ProfileUpdate {
public static function execute($uid = 0) {
if (empty($uid)) {
return;
}
ActivityPub::transmitProfileUpdate($uid);
Diaspora::sendProfile($uid);
}
}