mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:10:12 +00:00
Get rid of App->user completely
This commit is contained in:
parent
fc283ab928
commit
28090bd793
39 changed files with 158 additions and 234 deletions
|
@ -41,11 +41,7 @@ class AddContact
|
|||
return;
|
||||
}
|
||||
|
||||
$user = User::getById($uid);
|
||||
if (empty($user)) {
|
||||
return;
|
||||
}
|
||||
$result = Contact::createFromProbe($user, $url, '', false);
|
||||
$result = Contact::createFromProbe($uid, $url);
|
||||
Logger::info('Added contact', ['uid' => $uid, 'url' => $url, 'result' => $result]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue