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:
parent
2a7a5b2d01
commit
2bb3369ae2
@ -22,7 +22,11 @@ function chanview_content(&$a) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
elseif($_REQUEST['url']) {
|
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) {
|
if($r) {
|
||||||
$xchan = $r[0];
|
$xchan = $r[0];
|
||||||
|
Reference in New Issue
Block a user