From: Dean Townsley Date: Sat, 22 Jun 2019 23:56:33 +0000 (-0500) Subject: Use User:: API insteadd of direct database read X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9dff3d2b6d27a3917b7ca998c5d33c7b7cbaa84a;p=friendica.git Use User:: API insteadd of direct database read --- diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 0e2bfc579b..e47cfc72c0 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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.