Use User:: API insteadd of direct database read
This commit is contained in:
parent
042fcfeb50
commit
9dff3d2b6d
1 changed files with 1 additions and 1 deletions
|
@ -2928,7 +2928,7 @@ class DFRN
|
|||
$baseurl = substr($baseurl, $domain_st + 3);
|
||||
$nurl = Strings::normaliseLink($baseurl);
|
||||
|
||||
$r = DBA::selectFirst("user", ["uid"], ["nickname" => DBA::escape($contact_nick)], []);
|
||||
$r = User::getByNickname($contact_nick, ["uid"]);
|
||||
$contact_uid = $r["uid"];
|
||||
|
||||
/// @todo Why is there a query for "url" *and* "nurl"? Especially this normalising is strange.
|
||||
|
|
Loading…
Reference in a new issue