From: Michael Date: Tue, 3 Apr 2018 12:27:22 +0000 (+0000) Subject: Don't always queue messages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e7fb8c04dd1ed705c2399146e169ba2675141c9e;p=friendica.git Don't always queue messages --- diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index ecc9e9b699..e98d66a08b 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -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 {