aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-02 22:50:32 -0700
committerfriendica <info@friendica.com>2014-09-02 22:50:32 -0700
commit5715d5f4c7a628c175fe9fea17210ca3151cd601 (patch)
tree59c47111c948fd8e542448117b1b3317a524ed53 /include/diaspora.php
parentf36b58eb45c2eb8a12c7869a8ec6991f245a4540 (diff)
downloadvolse-hubzilla-5715d5f4c7a628c175fe9fea17210ca3151cd601.tar.gz
volse-hubzilla-5715d5f4c7a628c175fe9fea17210ca3151cd601.tar.bz2
volse-hubzilla-5715d5f4c7a628c175fe9fea17210ca3151cd601.zip
fix diaspora_handle_from_contact()
Diffstat (limited to 'include/diaspora.php')
-rwxr-xr-xinclude/diaspora.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/diaspora.php b/include/diaspora.php
index dbf906169..477f82914 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -269,8 +269,8 @@ function diaspora_handle_from_contact($contact_hash) {
logger("diaspora_handle_from_contact: contact id is " . $contact_hash, LOGGER_DEBUG);
- $r = q("SELECT * from abook left join xchan on abook_xchan = xchan_hash where abook_xchan = '%s' limit 1",
- intval($contact_hash)
+ $r = q("SELECT xchan_addr from xchan where xchan_hash = '%s' limit 1",
+ dbesc($contact_hash)
);
if($r) {
return $r[0]['xchan_addr'];