]> git.mxchange.org Git - friendica.git/blob - include/create_shadowentry.php
Merge pull request #3281 from annando/issue-3206-2957
[friendica.git] / include / create_shadowentry.php
1 <?php
2 /**
3  * @file include/create_shadowentry.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 require_once("include/threads.php");
10
11 function create_shadowentry_run($argv, $argc) {
12         if ($argc != 2) {
13                 return;
14         }
15
16         $message_id = intval($argv[1]);
17
18         add_shadow_entry($message_id);
19 }
20 ?>