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
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
}