proc_run was replaced

This commit is contained in:
Michael 2017-11-05 12:15:53 +00:00
commit 478e363967
41 changed files with 167 additions and 157 deletions

View file

@ -4,6 +4,7 @@
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Worker;
function send_message($recipient=0, $body='', $subject='', $replyto=''){
@ -143,7 +144,7 @@ function send_message($recipient=0, $body='', $subject='', $replyto=''){
}
if ($post_id) {
proc_run(PRIORITY_HIGH, "include/notifier.php", "mail", $post_id);
Worker::add(PRIORITY_HIGH, "notifier", "mail", $post_id);
return intval($post_id);
} else {
return -3;