mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
proc_run was replaced
This commit is contained in:
parent
da212a28a2
commit
478e363967
41 changed files with 167 additions and 157 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
|
||||
require_once("include/diaspora.php");
|
||||
|
||||
|
@ -166,7 +167,7 @@ function do_like($item_id, $verb) {
|
|||
);
|
||||
|
||||
$like_item_id = $like_item['id'];
|
||||
proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $like_item_id);
|
||||
Worker::add(PRIORITY_HIGH, "notifier", "like", $like_item_id);
|
||||
|
||||
if (!$event_verb_flag || $like_item['verb'] == $activity) {
|
||||
return true;
|
||||
|
@ -253,7 +254,7 @@ EOT;
|
|||
|
||||
call_hooks('post_local_end', $new_item);
|
||||
|
||||
proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $new_item_id);
|
||||
Worker::add(PRIORITY_HIGH, "notifier", "like", $new_item_id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue