https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
042fcfe
)
Use User:: API insteadd of direct database read
author
Dean Townsley
<dean@townsley.com>
Sat, 22 Jun 2019 23:56:33 +0000
(18:56 -0500)
committer
Dean Townsley
<dean@townsley.com>
Sat, 22 Jun 2019 23:56:33 +0000
(18:56 -0500)
src/Protocol/DFRN.php
patch
|
blob
|
history
diff --git
a/src/Protocol/DFRN.php
b/src/Protocol/DFRN.php
index
0e2bfc5
..
e47cfc7
100644
(file)
--- 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.