aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-19 02:35:45 -0800
committerfriendica <info@friendica.com>2013-12-19 02:35:45 -0800
commit825492407e3e064b6cd806b3ed7d484d2cc9f50e (patch)
tree38a3029e6358168eaf0aa5acbc77923ff456321d
parentb28a37c38e3fc68b1d0a59e4f5e6054ce13cb680 (diff)
downloadvolse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.tar.gz
volse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.tar.bz2
volse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.zip
more comanche
-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]