"CreateShadowentry" and "ProfileUpdate" now moved as well

This commit is contained in:
Michael 2017-11-19 16:59:37 +00:00
parent 98686e9091
commit 2de457489f
10 changed files with 46 additions and 37 deletions

View file

@ -0,0 +1,21 @@
<?php
/**
* @file src/Worker/CreateShadowentry.php
* @brief This script creates posts with UID = 0 for a given public post.
*
* This script is started from mod/item.php to save some time when doing a post.
*/
namespace Friendica\Worker;
require_once("include/threads.php");
class CreateShadowentry {
public static function execute($message_id = 0) {
if (empty($message_id)) {
return;
}
add_shadow_entry($message_id);
}
}

View file

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