Merge pull request #12571 from mexon/mat/local-contact

Allow adding local contacts via console
This commit is contained in:
Hypolite Petovan 2022-12-29 13:48:04 -05:00 committed by GitHub
commit b04feeeac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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');
}