aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-18 20:00:04 -0800
committerfriendica <info@friendica.com>2013-01-18 20:00:04 -0800
commit33b6d916611f6b9ec214fff38f60df128fbc940a (patch)
tree731b643474784553cb3e6ef7de9b07857a23ff2b
parentb274422867a11f14a1a2bfcf57b1de4961361e15 (diff)
downloadvolse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.tar.gz
volse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.tar.bz2
volse-hubzilla-33b6d916611f6b9ec214fff38f60df128fbc940a.zip
allow chanview by address
-rw-r--r--mod/chanview.php7
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];