Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
400B

  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. require_once("include/threads.php");
  9. function create_shadowentry_run($argv, $argc) {
  10. if ($argc != 2) {
  11. return;
  12. }
  13. $message_id = intval($argv[1]);
  14. add_shadow_entry($message_id);
  15. }