]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #600 from fermionic/20130204-message-button-on-own-profile
authorfriendica <info@friendica.com>
Wed, 6 Feb 2013 01:22:25 +0000 (17:22 -0800)
committerfriendica <info@friendica.com>
Wed, 6 Feb 2013 01:22:25 +0000 (17:22 -0800)
don't show Message button to user on own profile page

boot.php

index 70f16209a7951830d94286cfdd30cc515465f924..6db4de3d952bc246d829fc445b0d761ae6de0f98 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -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;