more comanche

This commit is contained in:
friendica 2013-12-19 02:35:45 -08:00
parent b28a37c38e
commit 825492407e
3 changed files with 10 additions and 18 deletions

View File

@ -78,12 +78,16 @@ function vcard_from_xchan($xchan, $observer = null, $mode = '') {
$a = get_app();
if(! $xchan) {
if($a->profile['channel_hash'])
if($a->poi) {
$xchan = $a->poi;
}
elseif($a->profile['channel_hash']) {
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($a->profile['channel_hash'])
);
if($r)
$xchan = $r[0];
}
}
if(! $xchan)

View File

@ -19,23 +19,6 @@ function connections_init(&$a) {
}
function connections_aside(&$a) {
if (! local_user())
return;
$a->set_widget('follow', widget_follow(array()));
$a->set_widget('suggest',widget_suggestions(array()));
$a->set_widget('findpeople',findpeople_widget());
}
function connections_post(&$a) {
if(! local_user())

View File

@ -0,0 +1,5 @@
[region=aside]
[widget=follow][/widget]
[widget=suggestions][/widget]
[widget=findpeople][/widget]
[/region]