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.

This commit is contained in:
friendica 2012-12-06 19:47:56 -08:00
parent 2a7a5b2d01
commit 2bb3369ae2

View File

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