aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-14 07:55:18 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-14 07:55:18 -0700
commit47e9613acde8a6282e3c3717edf6efb7fce47252 (patch)
tree7fb58a21abf5069260838b0639dda8fca3bbfc81 /mod/profile.php
parent2ee1b00c9c17f9ae299376a84d8055b0308864bf (diff)
downloadvolse-hubzilla-47e9613acde8a6282e3c3717edf6efb7fce47252.tar.gz
volse-hubzilla-47e9613acde8a6282e3c3717edf6efb7fce47252.tar.bz2
volse-hubzilla-47e9613acde8a6282e3c3717edf6efb7fce47252.zip
mongo notification checkin, wall, comments, settings
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 2356f913e..1b37d31bc 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -91,9 +91,16 @@ function profile_content(&$a, $update = false) {
if(remote_user()) {
$contact_id = $_SESSION['visitor_id'];
$groups = init_groups_visitor($contact_id);
+ $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
+ intval($contact_id),
+ intval($a->profile['uid'])
+ );
+ if(count($r))
+ $contact = $r[0];
}
if(local_user()) {
$contact_id = $_SESSION['cid'];
+ $contact = $a->contact;
}
if($update) {
@@ -239,9 +246,9 @@ function profile_content(&$a, $update = false) {
'$id' => $item['item_id'],
'$parent' => $item['parent'],
'$profile_uid' => $a->profile['uid'],
- '$mylink' => $a->contact['url'],
+ '$mylink' => $contact['url'],
'$mytitle' => t('Me'),
- '$myphoto' => $a->contact['thumb'],
+ '$myphoto' => $contact['thumb'],
'$ww' => ''
));
}