From: Michael <heluecht@pirati.ca>
Date: Sat, 1 Jun 2019 11:28:37 +0000 (+0000)
Subject: The only reason we don't defer is when it was a post to a relay
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f026f1814a2be9129e49b6d5bff08da8832d5ee;p=friendica.git

The only reason we don't defer is when it was a post to a relay
---

diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php
index 786b9774da..6cd8243651 100644
--- a/src/Worker/Delivery.php
+++ b/src/Worker/Delivery.php
@@ -405,7 +405,7 @@ class Delivery extends BaseObject
 			// The message could not be delivered. We mark the contact as "dead"
 			Model\Contact::markForArchival($contact);
 
-			if (!empty($contact['contact-type']) && ($contact['contact-type'] != Model\Contact::TYPE_RELAY)) {
+			if (empty($contact['contact-type']) || ($contact['contact-type'] != Model\Contact::TYPE_RELAY)) {
 				Logger::info('Delivery failed: defer message', ['id' => defaults($target_item, 'guid', $target_item['id'])]);
 				// defer message for redelivery
 				Worker::defer();