From 742bdd3054408433f8d639acbb07d0fd9c3ad4f7 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 4 Apr 2011 05:52:59 -0700 Subject: make photo menu work better on remote profile logins --- mod/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/profile.php') diff --git a/mod/profile.php b/mod/profile.php index ab1e8f738..b421591f6 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -402,7 +402,7 @@ function profile_content(&$a, $update = 0) { // This is my profile page but I'm not the author of this post/comment. If it's somebody that's a fan or mutual friend, // I can go directly to their profile as an authenticated guest. - if(local_user() && ($item['contact-uid'] == $_SESSION['uid']) + if(local_user() && ($item['contact-uid'] == local_user()) && ($item['network'] === 'dfrn') && (! $item['self'] )) { $profile_url = $redirect_url; $sparkle = ' sparkle'; -- cgit v1.2.3