Merge pull request #600 from fermionic/20130204-message-button-on-own-profile

don't show Message button to user on own profile page
This commit is contained in:
friendica 2013-02-05 17:22:25 -08:00
commit b6008130c4

View file

@ -1327,7 +1327,7 @@ if(! function_exists('profile_sidebar')) {
}
}
if(get_my_url() && $profile['unkmail'])
if( get_my_url() && $profile['unkmail'] && ($profile['uid'] != local_user()) )
$wallmessage = t('Message');
else
$wallmessage = false;