]> git.mxchange.org Git - friendica.git/commitdiff
Allow adding local contacts via console
authorMatthew Exon <git.mexon@spamgourmet.com>
Thu, 29 Dec 2022 18:39:27 +0000 (19:39 +0100)
committerMatthew Exon <git.mexon@spamgourmet.com>
Thu, 29 Dec 2022 18:39:27 +0000 (19:39 +0100)
src/Console/Contact.php

index 37f3f056e4f755da410df6b52419f702c53ef090..d5f3c9923fee27ea08bf8b44bed87a28aab3b718 100644 (file)
@@ -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');
                }