Fallback to Diaspora if DFRN transmission fails (#5487)
This commit is contained in:
parent
5a8654194a
commit
69af69d1a0
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue