X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdelivery.php;h=7c5f4648c681fda5ca556b7877d67c2a16fb157c;hb=3b2cd854837e5df38f75f323aab24e31098812d4;hp=098e423d170d9d6efb8dd7e3903fb6e6cc307e36;hpb=fd5d058156185c6c02c1285a794139d07f4d13ce;p=friendica.git diff --git a/include/delivery.php b/include/delivery.php index 098e423d17..7c5f4648c6 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -1,14 +1,15 @@ "; // If Threading is enabled, write down the correct parent - if (($it["thr-parent"] != "") and ($it["thr-parent"] != $it["parent-uri"])) + if (($it["thr-parent"] != "") && ($it["thr-parent"] != $it["parent-uri"])) $headers .= " <".iri2msgid($it["thr-parent"]).">"; $headers .= "\n"; @@ -462,14 +463,14 @@ function delivery_run(&$argv, &$argc){ dbesc($it['parent-uri']), intval($uid)); - if (dbm::is_result($r) AND ($r[0]['title'] != '')) { + if (DBM::is_result($r) && ($r[0]['title'] != '')) { $subject = $r[0]['title']; } else { $r = q("SELECT `title` FROM `item` WHERE `parent-uri` = '%s' AND `uid` = %d LIMIT 1", dbesc($it['parent-uri']), intval($uid)); - if (dbm::is_result($r) AND ($r[0]['title'] != '')) + if (DBM::is_result($r) && ($r[0]['title'] != '')) $subject = $r[0]['title']; } } @@ -488,7 +489,7 @@ function delivery_run(&$argv, &$argc){ logger('delivery: diaspora batch deliver: '.$loc); - if (get_config('system','dfrn_only') || (!get_config('system','diaspora_enabled'))) + if (Config::get('system','dfrn_only') || (!Config::get('system','diaspora_enabled'))) break; if ($mail) { @@ -507,6 +508,9 @@ function delivery_run(&$argv, &$argc){ logger('diaspora retract: '.$loc); Diaspora::send_retraction($target_item,$owner,$contact,$public_message); break; + } elseif ($relocate) { + Diaspora::sendAccountMigration($owner, $contact, $uid); + break; } elseif ($followup) { // send comments and likes to owner to relay logger('diaspora followup: '.$loc);