From 91126d8dd33bdfa86ab1013561833b0c3c224a14 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 26 Jan 2013 02:24:07 -0800 Subject: more photo backend stuff --- include/Contact.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/Contact.php') 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; -- cgit v1.2.3