diff options
author | friendica <info@friendica.com> | 2013-01-18 20:00:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-18 20:00:04 -0800 |
commit | 33b6d916611f6b9ec214fff38f60df128fbc940a (patch) | |
tree | 731b643474784553cb3e6ef7de9b07857a23ff2b /mod/chanview.php | |
parent | b274422867a11f14a1a2bfcf57b1de4961361e15 (diff) | |
download | volse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.tar.gz volse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.tar.bz2 volse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.zip |
allow chanview by address
Diffstat (limited to 'mod/chanview.php')
-rw-r--r-- | mod/chanview.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/chanview.php b/mod/chanview.php index a9f3969d1..d3e902f60 100644 --- a/mod/chanview.php +++ b/mod/chanview.php @@ -13,6 +13,11 @@ function chanview_content(&$a) { dbesc($_REQUEST['hash']) ); } + if($_REQUEST['address']) { + $r = q("select * from xchan where xchan_addr = '%s' limit 1", + dbesc($_REQUEST['address']) + ); + } elseif(local_user() && intval($_REQUEST['cid'])) { $r = q("SELECT abook.*, xchan.* FROM abook left join xchan on abook_xchan = xchan_hash @@ -26,7 +31,7 @@ function chanview_content(&$a) { dbesc($_REQUEST['url']) ); if(! $r) - $xchan = array(array('xchan_url' => $_REQUEST['url'])); + $r = array(array('xchan_url' => $_REQUEST['url'])); } if($r) { $xchan = $r[0]; |