aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/Contact.php6
-rw-r--r--mod/connections.php17
-rw-r--r--view/pdl/mod_connections.pdl5
3 files changed, 10 insertions, 18 deletions
diff --git a/include/Contact.php b/include/Contact.php
index 20dd04d17..59605e463 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -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)
diff --git a/mod/connections.php b/mod/connections.php
index 10f0468b6..0365a0585 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -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())
diff --git a/view/pdl/mod_connections.pdl b/view/pdl/mod_connections.pdl
new file mode 100644
index 000000000..fc86e4490
--- /dev/null
+++ b/view/pdl/mod_connections.pdl
@@ -0,0 +1,5 @@
+[region=aside]
+[widget=follow][/widget]
+[widget=suggestions][/widget]
+[widget=findpeople][/widget]
+[/region]