aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-06 19:47:56 -0800
committerfriendica <info@friendica.com>2012-12-06 19:47:56 -0800
commit2bb3369ae20edeeb275167027bb4397dc73f5abc (patch)
tree3de57e6cff62fb00e63b477d19f1ec44207565b8
parent2a7a5b2d0182193c96a12097dd3cf47f517e3553 (diff)
downloadvolse-hubzilla-2bb3369ae20edeeb275167027bb4397dc73f5abc.tar.gz
volse-hubzilla-2bb3369ae20edeeb275167027bb4397dc73f5abc.tar.bz2
volse-hubzilla-2bb3369ae20edeeb275167027bb4397dc73f5abc.zip
lookup channels in local xchan table even if provided an unknown url - this will show their pseudo vcard and connect button if they've ever been seen on this site before.
-rw-r--r--mod/chanview.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/chanview.php b/mod/chanview.php
index abc7fc216..42e5e1ed9 100644
--- a/mod/chanview.php
+++ b/mod/chanview.php
@@ -22,7 +22,11 @@ function chanview_content(&$a) {
);
}
elseif($_REQUEST['url']) {
- $r = array(array('xchan_url' => $_REQUEST['url']));
+ $r = q("select * from xchan where xchan_url = '%s' limit 1",
+ dbesc($_REQUEST['url'])
+ );
+ if(! $r)
+ $r = array(array('xchan_url' => $_REQUEST['url']));
}
if($r) {
$xchan = $r[0];