]> git.mxchange.org Git - friendica.git/commitdiff
don't check for was_recently_delayed in diaspora_transmit during a queue run
authorZach Prezkuta <fermion@gmx.com>
Mon, 9 Jul 2012 15:39:09 +0000 (09:39 -0600)
committerZach Prezkuta <fermion@gmx.com>
Mon, 9 Jul 2012 15:39:09 +0000 (09:39 -0600)
include/diaspora.php
include/lock.php
include/queue.php

index df388737a3c3efc09f98fb94d90029037f0a60e7..79b4d1a26ba30faa3bd1b07a2bb4c4bf6d42cf7d 100755 (executable)
@@ -2517,7 +2517,7 @@ function diaspora_send_mail($item,$owner,$contact) {
 
 }
 
-function diaspora_transmit($owner,$contact,$slap,$public_batch) {
+function diaspora_transmit($owner,$contact,$slap,$public_batch,$queue_run=false) {
 
        $enabled = intval(get_config('system','diaspora_enabled'));
        if(! $enabled) {
@@ -2534,7 +2534,7 @@ function diaspora_transmit($owner,$contact,$slap,$public_batch) {
 
        logger('diaspora_transmit: ' . $logid . ' ' . $dest_url);
 
-       if(was_recently_delayed($contact['id'])) {
+       if( (! $queue_run) && (was_recently_delayed($contact['id'])) ) {
                $return_code = 0;
        }
        else {
index 5f1ca63231123a87dac5cceb165c9edf253a6583..707e33609e32456b64c7e295b8786b3f1e0964f3 100644 (file)
@@ -73,5 +73,3 @@ function unlock_function($fn_name) {
 
        return;
 }}
-
-?>
index 7e92705be27db7e639c547b8a6c2a45853aeef96..ba3babe70dd3c4538876dc691dba385edebfafc6 100644 (file)
@@ -161,7 +161,7 @@ function queue_run($argv, $argc){
                        case NETWORK_DIASPORA:
                                if($contact['notify']) {
                                        logger('queue: diaspora_delivery: item ' . $q_item['id'] . ' for ' . $contact['name']);
-                                       $deliver_status = diaspora_transmit($owner,$contact,$data,$public);
+                                       $deliver_status = diaspora_transmit($owner,$contact,$data,$public,true);
 
                                        if($deliver_status == (-1))
                                                update_queue_time($q_item['id']);