mirror of
https://github.com/friendica/friendica
synced 2024-12-25 14:40:16 +00:00
21 lines
399 B
PHP
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);
|
|
}
|
|
}
|