Burn notices, burn
[friendica.git/.git] / src / Worker / CreateShadowEntry.php
1 <?php
2 /**
3  * @file src/Worker/CreateShadowEntry.php
4  * @brief This script creates posts with UID = 0 for a given public post.
5  *
6  * This script is started from mod/item.php to save some time when doing a post.
7  */
8
9 namespace Friendica\Worker;
10
11 use Friendica\Model\Item;
12
13 class CreateShadowEntry {
14         public static function execute($message_id = 0) {
15                 if (empty($message_id)) {
16                         return;
17                 }
18
19                 Item::addShadowPost($message_id);
20         }
21 }