1
0
Fork 0

Use User:: API insteadd of direct database read

This commit is contained in:
Dean Townsley 2019-06-22 18:56:33 -05:00
parent 042fcfeb50
commit 9dff3d2b6d

View file

@ -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.