more photo backend stuff

This commit is contained in:
friendica
2013-01-26 02:24:07 -08:00
parent 70aa8421b3
commit 91126d8dd3
5 changed files with 74 additions and 39 deletions

View File

@@ -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;