]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Contact.php
bump version 2023.12
[friendica.git] / src / Console / Contact.php
index 37f3f056e4f755da410df6b52419f702c53ef090..a80b88349a157bc99bfca55bbc720be1fbb74061 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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');
                }