From 9dff3d2b6d27a3917b7ca998c5d33c7b7cbaa84a Mon Sep 17 00:00:00 2001 From: Dean Townsley Date: Sat, 22 Jun 2019 18:56:33 -0500 Subject: [PATCH] Use User:: API insteadd of direct database read --- src/Protocol/DFRN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.20.1