From e7fb8c04dd1ed705c2399146e169ba2675141c9e Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 3 Apr 2018 12:27:22 +0000 Subject: [PATCH] Don't always queue messages --- src/Worker/Delivery.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.39.5