aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-26 02:24:07 -0800
committerfriendica <info@friendica.com>2013-01-26 02:24:07 -0800
commit91126d8dd33bdfa86ab1013561833b0c3c224a14 (patch)
tree6f8b1a86dccd7f753015270156ddf2b89614f1ea /include/Contact.php
parent70aa8421b37a6ad7318172ef515bbb56e2d33917 (diff)
downloadvolse-hubzilla-91126d8dd33bdfa86ab1013561833b0c3c224a14.tar.gz
volse-hubzilla-91126d8dd33bdfa86ab1013561833b0c3c224a14.tar.bz2
volse-hubzilla-91126d8dd33bdfa86ab1013561833b0c3c224a14.zip
more photo backend stuff
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index be4bd9212..2ace23f01 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -19,6 +19,13 @@ function abook_self($channel_id) {
return(($r) ? $r[0] : array());
}
+function channelx_by_nick($nick) {
+ return q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' LIMIT 1",
+ dbesc($nick)
+ );
+}
+
+
function vcard_from_xchan($xchan, $observer = null, $mode = '') {
$connect = false;