]> git.mxchange.org Git - friendica.git/commitdiff
don't show Message button to user on own profile page
authorZach Prezkuta <fermion@gmx.com>
Tue, 5 Feb 2013 03:14:50 +0000 (20:14 -0700)
committerZach Prezkuta <fermion@gmx.com>
Tue, 5 Feb 2013 03:14:50 +0000 (20:14 -0700)
boot.php

index 3064b817d27028175136f9915e26e5b531ffbfab..bb0b2ab7ff38e9057527ceb58c39df294daa5fc2 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;