]> git.mxchange.org Git - friendica.git/commitdiff
Don't always queue messages
authorMichael <heluecht@pirati.ca>
Tue, 3 Apr 2018 12:27:22 +0000 (12:27 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 3 Apr 2018 12:27:22 +0000 (12:27 +0000)
src/Worker/Delivery.php

index ecc9e9b699d128cb220305157d993df252682aba..e98d66a08b46952627fccac390a764df29aa2ecb 100644 (file)
@@ -318,10 +318,12 @@ class Delivery {
 
                                logger('notifier: dfrn_delivery to '.$contact["url"].' with guid '.$target_item["guid"].' returns '.$deliver_status);
 
-                               if ($deliver_status < 200) {
+                               if ($deliver_status < 0) {
                                        logger('notifier: delivery failed: queuing message');
                                        Queue::add($contact['id'], NETWORK_DFRN, $atom, false, $target_item['guid']);
+                               }
 
+                               if ($deliver_status < 200) {
                                        // The message could not be delivered. We mark the contact as "dead"
                                        Contact::markForArchival($contact);
                                } else {