]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
proc_run was replaced
[friendica.git] / mod / fsuggest.php
index 32ed63b4c20ae75ed3207ab99df74b541848b500..efaf100efcaa1bf3b9535d4343bcfcf4265b8988 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 use Friendica\App;
+use Friendica\Core\Worker;
 
 function fsuggest_post(App $a) {
 
@@ -59,7 +60,7 @@ function fsuggest_post(App $a) {
                                        intval($fsuggest_id),
                                        intval(local_user())
                                );
-                               proc_run(PRIORITY_HIGH, 'include/notifier.php', 'suggest', $fsuggest_id);
+                               Worker::add(PRIORITY_HIGH, 'notifier', 'suggest', $fsuggest_id);
                        }
 
                        info( t('Friend suggestion sent.') . EOL);