]> git.mxchange.org Git - friendica.git/blobdiff - include/notifier.php
Unused files are removed
[friendica.git] / include / notifier.php
index 99a736db0a81484625a11e65ff319c0c60682f53..e65da3adf2cbff2fc5d9ad32af4d5a0d091fdfd6 100644 (file)
@@ -535,8 +535,8 @@ function notifier_run(&$argv, &$argc){
 
        if($public_message) {
 
-               if (!$followup)
-                       $r0 = diaspora_fetch_relay();
+               if (!$followup AND $top_level)
+                       $r0 = diaspora::relay_list();
                else
                        $r0 = array();
 
@@ -559,7 +559,7 @@ function notifier_run(&$argv, &$argc){
                $r = array_merge($r2,$r1,$r0);
 
                if(count($r)) {
-                       logger('pubdeliver: ' . print_r($r,true), LOGGER_DEBUG);
+                       logger('pubdeliver '.$target_item["guid"].': '.print_r($r,true), LOGGER_DEBUG);
 
                        // throw everything into the queue in case we get killed
 
@@ -584,7 +584,7 @@ function notifier_run(&$argv, &$argc){
                                }
 
                                if((! $mail) && (! $fsuggest) && (! $followup)) {
-                                       logger('notifier: delivery agent: ' . $rr['name'] . ' ' . $rr['id']);
+                                       logger('notifier: delivery agent: '.$rr['name'].' '.$rr['id'].' '.$rr['network'].' '.$target_item["guid"]);
                                        proc_run('php','include/delivery.php',$cmd,$item_id,$rr['id']);
                                        if($interval)
                                                @time_sleep_until(microtime(true) + (float) $interval);
@@ -629,11 +629,11 @@ function notifier_run(&$argv, &$argc){
        }
 
        // If the item was deleted, clean up the `sign` table
-       if($target_item['deleted']) {
+       /* if($target_item['deleted']) {
                $r = q("DELETE FROM sign where `retract_iid` = %d",
                        intval($target_item['id'])
                );
-       }
+       } */
 
        logger('notifier: calling hooks', LOGGER_DEBUG);