]> git.mxchange.org Git - friendica.git/blobdiff - include/notifier.php
regenerated master messages.po for new strings in the admin panel
[friendica.git] / include / notifier.php
index e7eb278effe0f04be4b60810c7427dc6ca79ba29..cfe4e184120cb7c5307e537782e0ba87db14a2e5 100644 (file)
@@ -16,7 +16,7 @@ require_once('include/salmon.php');
 /*
  * The notifier is typically called with:
  *
- *             proc_run('php', "include/notifier.php", COMMAND, ITEM_ID);
+ *             proc_run(PRIORITY_HIGH, "include/notifier.php", COMMAND, ITEM_ID);
  *
  * where COMMAND is one of the following:
  *
@@ -134,7 +134,7 @@ function notifier_run(&$argv, &$argc){
        } elseif($cmd === 'removeme') {
                $r = q("SELECT `contact`.*, `user`.`pubkey` AS `upubkey`, `user`.`prvkey` AS `uprvkey`,
                                `user`.`timezone`, `user`.`nickname`, `user`.`sprvkey`, `user`.`spubkey`,
-                               `user`.`page-flags`, `user`.`prvnets`
+                               `user`.`page-flags`, `user`.`prvnets`, `user`.`guid`
                        FROM `contact` INNER JOIN `user` ON `user`.`uid` = `contact`.`uid`
                                WHERE `contact`.`uid` = %d AND `contact`.`self` LIMIT 1",
                                intval($item_id));
@@ -355,7 +355,7 @@ function notifier_run(&$argv, &$argc){
                        // a delivery fork. private groups (forum_mode == 2) do not uplink
 
                        if((intval($parent['forum_mode']) == 1) && (! $top_level) && ($cmd !== 'uplink')) {
-                               proc_run('php','include/notifier.php','uplink',$item_id);
+                               proc_run(PRIORITY_HIGH,'include/notifier.php','uplink',$item_id);
                        }
 
                        $conversants = array();
@@ -538,7 +538,7 @@ function notifier_run(&$argv, &$argc){
                        $this_batch[] = $contact['id'];
 
                        if(count($this_batch) >= $deliveries_per_process) {
-                               proc_run('php','include/delivery.php',$cmd,$item_id,$this_batch);
+                               proc_run(PRIORITY_HIGH,'include/delivery.php',$cmd,$item_id,$this_batch);
                                $this_batch = array();
                                if($interval)
                                        @time_sleep_until(microtime(true) + (float) $interval);
@@ -548,7 +548,7 @@ function notifier_run(&$argv, &$argc){
 
                // be sure to pick up any stragglers
                if(count($this_batch))
-                       proc_run('php','include/delivery.php',$cmd,$item_id,$this_batch);
+                       proc_run(PRIORITY_HIGH,'include/delivery.php',$cmd,$item_id,$this_batch);
        }
 
        // send salmon slaps to mentioned remote tags (@foo@example.com) in OStatus posts
@@ -619,7 +619,7 @@ function notifier_run(&$argv, &$argc){
 
                                if((! $mail) && (! $fsuggest) && (! $followup)) {
                                        logger('notifier: delivery agent: '.$rr['name'].' '.$rr['id'].' '.$rr['network'].' '.$target_item["guid"]);
-                                       proc_run('php','include/delivery.php',$cmd,$item_id,$rr['id']);
+                                       proc_run(PRIORITY_HIGH,'include/delivery.php',$cmd,$item_id,$rr['id']);
                                        if($interval)
                                                @time_sleep_until(microtime(true) + (float) $interval);
                                }
@@ -659,7 +659,7 @@ function notifier_run(&$argv, &$argc){
                }
 
                // Handling the pubsubhubbub requests
-               proc_run('php','include/pubsubpublish.php');
+               proc_run(PRIORITY_HIGH,'include/pubsubpublish.php');
        }
 
        logger('notifier: calling hooks', LOGGER_DEBUG);