make photo menu work better on remote profile logins

This commit is contained in:
Friendika 2011-04-04 05:52:59 -07:00
parent 9f804b936a
commit 742bdd3054
2 changed files with 9 additions and 3 deletions

View file

@ -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';