proc_run was replaced
This commit is contained in:
parent
da212a28a2
commit
478e363967
41 changed files with 167 additions and 157 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue