From 1dbbafa1af0393b8ab05d0bfc52935a6c1fd71fd Mon Sep 17 00:00:00 2001
From: Matthew Exon <git.mexon@spamgourmet.com>
Date: Thu, 29 Dec 2022 19:39:27 +0100
Subject: [PATCH] Allow adding local contacts via console

---
 src/Console/Contact.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Console/Contact.php b/src/Console/Contact.php
index 37f3f056e4..d5f3c9923f 100644
--- a/src/Console/Contact.php
+++ b/src/Console/Contact.php
@@ -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');
 		}