mirror of
https://github.com/friendica/friendica
synced 2025-05-08 11:04:10 +02:00
"CreateShadowentry" and "ProfileUpdate" now moved as well
This commit is contained in:
parent
98686e9091
commit
2de457489f
10 changed files with 46 additions and 37 deletions
21
src/Worker/CreateShadowentry.php
Normal file
21
src/Worker/CreateShadowentry.php
Normal 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);
|
||||
}
|
||||
}
|
19
src/Worker/ProfileUpdate.php
Normal file
19
src/Worker/ProfileUpdate.php
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue