use Friendica\App;
use Friendica\Core\System;
+use Friendica\Core\Worker;
require_once 'include/crypto.php';
require_once 'include/enotify.php';
// update filetags in pconfig
file_tag_update_pconfig($uid,$categories_old,$categories_new,'category');
- proc_run(PRIORITY_HIGH, "include/notifier.php", 'edit_post', $post_id);
+ Worker::add(PRIORITY_HIGH, "notifier", 'edit_post', $post_id);
if ((x($_REQUEST, 'return')) && strlen($return_path)) {
logger('return: ' . $return_path);
goaway($return_path);
// 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
- proc_run(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "include/create_shadowentry.php", $post_id);
+ Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "create_shadowentry", $post_id);
// Call the background process that is delivering the item to the receivers
- proc_run(PRIORITY_HIGH, "include/notifier.php", $notify_type, $post_id);
+ Worker::add(PRIORITY_HIGH, "notifier", $notify_type, $post_id);
logger('post_complete');