]> git.mxchange.org Git - friendica.git/blobdiff - mod/mood.php
proc_run was replaced
[friendica.git] / mod / mood.php
index c4d93b6de2fe4c645b087cdf0cac073b8e3411a7..26eb736d19848a53d391b80d887247860833be9c 100644 (file)
@@ -2,6 +2,7 @@
 
 use Friendica\App;
 use Friendica\Core\System;
+use Friendica\Core\Worker;
 
 require_once('include/security.php');
 require_once('include/bbcode.php');
@@ -98,13 +99,13 @@ function mood_init(App $a) {
                        intval($uid),
                        intval($item_id)
                );
-               proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id);
+               Worker::add(PRIORITY_HIGH, "notifier", "tag", $item_id);
        }
 
 
        call_hooks('post_local_end', $arr);
 
-       proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $post_id);
+       Worker::add(PRIORITY_HIGH, "notifier", "like", $post_id);
 
        return;
 }