]> git.mxchange.org Git - friendica.git/commitdiff
The only reason we don't defer is when it was a post to a relay
authorMichael <heluecht@pirati.ca>
Sat, 1 Jun 2019 11:28:37 +0000 (11:28 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 1 Jun 2019 11:28:37 +0000 (11:28 +0000)
src/Worker/Delivery.php

index 786b9774da749285ad8ddf19eb47b331cae8e998..6cd824365175ee8b0b52d95cc09f61010e2dd2eb 100644 (file)
@@ -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();