From 47e9613acde8a6282e3c3717edf6efb7fce47252 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sat, 14 Aug 2010 07:55:18 -0700 Subject: mongo notification checkin, wall, comments, settings --- mod/profile.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mod/profile.php') 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' => '' )); } -- cgit v1.2.3