X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdelivery.php;h=cddc9cb004006eb15d17c3bc0241734de6e1315a;hb=e40c3a9d7c980c4287c273bc12d934ceb8b55fc0;hp=faa1cad6745d45667f4a3e393006f92f6a06772d;hpb=8f7d191bfca553f9d928666e7ef3b52a26911a8e;p=friendica.git diff --git a/include/delivery.php b/include/delivery.php index faa1cad674..cddc9cb004 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -1,21 +1,23 @@ "; // 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"; @@ -461,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']; } } @@ -506,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);