$fsuggest = false;
$relocate = false;
$top_level = false;
- $recipients = array();
- $url_recipients = array();
+ $recipients = [];
+ $url_recipients = [];
$followup = false;
$normal_mode = true;
}
$icontacts = null;
- $contacts_arr = array();
+ $contacts_arr = [];
foreach ($items as $item) {
if (!in_array($item['contact-id'],$contacts_arr)) {
$contacts_arr[] = intval($item['contact-id']);
}
$deliver_status = 0;
+ // Transmit via Diaspora if not possible via Friendica
+ if (($item['uid'] == 0) && ($contact['network'] == NETWORK_DFRN)) {
+ $contact['network'] = NETWORK_DIASPORA;
+ }
+
logger("main delivery by delivery: followup=$followup mail=$mail fsuggest=$fsuggest relocate=$relocate - network ".$contact['network']);
- switch($contact['network']) {
+ switch ($contact['network']) {
case NETWORK_DFRN:
logger('notifier: '.$target_item["guid"].' dfrndelivery: '.$contact['name']);
} elseif ($relocate) {
$atom = DFRN::relocate($owner, $uid);
} elseif ($followup) {
- $msgitems = array();
+ $msgitems = [];
foreach ($items as $item) { // there is only one item
if (!$item['parent']) {
return;
}
$atom = DFRN::entries($msgitems,$owner);
} else {
- $msgitems = array();
+ $msgitems = [];
foreach ($items as $item) {
if (!$item['parent']) {
return;