X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FContact.php;h=a80b88349a157bc99bfca55bbc720be1fbb74061;hb=1523fa22369fd73b5d7d5e50269f871917d7613c;hp=f051d870a295c8710a72f21a7b7c57992fc3f486;hpb=6a1f9a7fa358062e7b360e9c017b5a6887d2da0c;p=friendica.git diff --git a/src/Console/Contact.php b/src/Console/Contact.php index f051d870a2..a80b88349a 100644 --- a/src/Console/Contact.php +++ b/src/Console/Contact.php @@ -1,6 +1,6 @@ appMode = $appMode; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -157,7 +157,7 @@ HELP; $url = Probe::cleanURI($url); - $contact = ContactModel::getByURLForUser($url, $user['uid']); + $contact = ContactModel::getByURL($url, null, [], $user['uid']); if (!empty($contact)) { throw new RuntimeException('Contact already exists'); }