From 69af69d1a0c4deb855c6598b681893e905937144 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 24 Jul 2018 20:12:09 +0200 Subject: [PATCH] Fallback to Diaspora if DFRN transmission fails (#5487) --- src/Worker/Delivery.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Worker/Delivery.php b/src/Worker/Delivery.php index 87e3024882..022faa2d7a 100644 --- a/src/Worker/Delivery.php +++ b/src/Worker/Delivery.php @@ -309,6 +309,10 @@ class Delivery extends BaseObject } else { // The message could not be delivered. We mark the contact as "dead" Contact::markForArchival($contact); + + // Transmit via Diaspora when all other methods (legacy DFRN and new one) are failing. + // This is a fallback for systems that don't know the new methods. + self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup); } }