mirror of
https://github.com/friendica/friendica
synced 2025-04-27 23:10:12 +00:00
Synchronize contacts with the directory server
This commit is contained in:
parent
2b9ef97adc
commit
d9a9876ddd
6 changed files with 93 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue