more comanche
This commit is contained in:
parent
b28a37c38e
commit
825492407e
@ -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)
|
||||
|
@ -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())
|
||||
|
5
view/pdl/mod_connections.pdl
Normal file
5
view/pdl/mod_connections.pdl
Normal file
@ -0,0 +1,5 @@
|
||||
[region=aside]
|
||||
[widget=follow][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=findpeople][/widget]
|
||||
[/region]
|
Reference in New Issue
Block a user