aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
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 /include/Contact.php
parentb28a37c38e3fc68b1d0a59e4f5e6054ce13cb680 (diff)
downloadvolse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.tar.gz
volse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.tar.bz2
volse-hubzilla-825492407e3e064b6cd806b3ed7d484d2cc9f50e.zip
more comanche
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php6
1 files changed, 5 insertions, 1 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)