Browse Source

No german compound wording :-)

pull/3917/head
Michael 4 years ago
parent
commit
183999ee08
  1. 2
      mod/item.php
  2. 2
      src/Core/Worker.php
  3. 4
      src/Worker/CreateShadowEntry.php

2
mod/item.php

@ -1064,7 +1064,7 @@ function item_post(App $a) {
// We now do it in the background to save some time.
// This is important in interactive environments like the frontend or the API.
// We don't fork a new process since this is done anyway with the following command
Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowentry", $post_id);
Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowEntry", $post_id);
// Call the background process that is delivering the item to the receivers
Worker::add(PRIORITY_HIGH, "Notifier", $notify_type, $post_id);

2
src/Core/Worker.php

@ -923,7 +923,7 @@ class Worker {
*
* next args are passed as $cmd command line
* or: Worker::add(PRIORITY_HIGH, "Notifier", "drop", $drop_id);
* or: Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowentry", $post_id);
* or: Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowEntry", $post_id);
*
* @note $cmd and string args are surrounded with ""
*

4
src/Worker/CreateShadowentry.php → src/Worker/CreateShadowEntry.php

@ -1,6 +1,6 @@
<?php
/**
* @file src/Worker/CreateShadowentry.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.
@ -10,7 +10,7 @@ namespace Friendica\Worker;
require_once("include/threads.php");
class CreateShadowentry {
class CreateShadowEntry {
public static function execute($message_id = 0) {
if (empty($message_id)) {
return;
Loading…
Cancel
Save