Better fallback on values > 299 as well
This commit is contained in:
parent
1e2bc1e6cf
commit
4904be0d6f
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ class Delivery extends BaseObject {
|
||||||
// Se we transmit with the new method and via Diaspora as a fallback
|
// Se we transmit with the new method and via Diaspora as a fallback
|
||||||
if ($items[0]['uid'] == 0) {
|
if ($items[0]['uid'] == 0) {
|
||||||
$deliver_status = DFRN::transmit($owner, $contact, $atom);
|
$deliver_status = DFRN::transmit($owner, $contact, $atom);
|
||||||
if ($deliver_status < 200) {
|
if (($deliver_status < 200) || ($deliver_status > 299)) {
|
||||||
// Transmit via Diaspora if not possible via Friendica
|
// Transmit via Diaspora if not possible via Friendica
|
||||||
self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup);
|
self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue