1
0
Fork 0

Fallback to Diaspora if DFRN transmission fails (#5487)

This commit is contained in:
Michael Vogel 2018-07-24 20:12:09 +02:00 committed by Hypolite Petovan
parent 5a8654194a
commit 69af69d1a0

View file

@ -309,6 +309,10 @@ class Delivery extends BaseObject
} else { } else {
// The message could not be delivered. We mark the contact as "dead" // The message could not be delivered. We mark the contact as "dead"
Contact::markForArchival($contact); 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);
} }
} }