Synchronize contacts with the directory server

This commit is contained in:
Michael 2020-07-31 09:08:51 +00:00
parent 2b9ef97adc
commit d9a9876ddd
6 changed files with 93 additions and 0 deletions

View file

@ -34,6 +34,13 @@ class AddContact
*/
public static function execute(int $uid, string $url)
{
if ($uid == 0) {
// Adding public contact
$result = Contact::getIdForURL($url);
Logger::info('Added public contact', ['url' => $url, 'result' => $result]);
return;
}
$user = User::getById($uid);
if (empty($user)) {
return;