]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
proc_run was replaced
[friendica.git] / mod / photos.php
index bafd97ebeeb12f63ac26d5f8f96eda1a97b5e02d..e626ef4005e016e51b123258964778ae408ff31c 100644 (file)
@@ -3,6 +3,7 @@
 use Friendica\App;
 use Friendica\Core\System;
 use Friendica\Core\Config;
+use Friendica\Core\Worker;
 use Friendica\Network\Probe;
 
 require_once 'include/Photo.php';
@@ -304,7 +305,7 @@ function photos_post(App $a) {
                                        // send the notification upstream/downstream as the case may be
 
                                        if ($rr['visible']) {
-                                               proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
+                                               Worker::add(PRIORITY_HIGH, "notifier", "drop", $drop_id);
                                        }
                                }
                        }
@@ -381,7 +382,7 @@ function photos_post(App $a) {
                                photo_albums($page_owner_uid, true);
 
                                if ($i[0]['visible']) {
-                                       proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
+                                       Worker::add(PRIORITY_HIGH, "notifier", "drop", $drop_id);
                                }
                        }
                }
@@ -729,7 +730,7 @@ function photos_post(App $a) {
 
                                        $item_id = item_store($arr);
                                        if ($item_id) {
-                                               proc_run(PRIORITY_HIGH, "include/notifier.php", "tag", $item_id);
+                                               Worker::add(PRIORITY_HIGH, "notifier", "tag", $item_id);
                                        }
                                }
                        }
@@ -934,7 +935,7 @@ function photos_post(App $a) {
        photo_albums($page_owner_uid, true);
 
        if ($visible) {
-               proc_run(PRIORITY_HIGH, "include/notifier.php", 'wall-new', $item_id);
+               Worker::add(PRIORITY_HIGH, "notifier", 'wall-new', $item_id);
        }
 
        call_hooks('photo_post_end',intval($item_id));