]> 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

1  2 
boot.php

diff --combined boot.php
index 70f16209a7951830d94286cfdd30cc515465f924,bb0b2ab7ff38e9057527ceb58c39df294daa5fc2..6db4de3d952bc246d829fc445b0d761ae6de0f98
+++ b/boot.php
@@@ -12,7 -12,7 +12,7 @@@ require_once('library/Mobile_Detect/Mob
  require_once('include/features.php');
  
  define ( 'FRIENDICA_PLATFORM',     'Friendica');
 -define ( 'FRIENDICA_VERSION',      '3.1.1601' );
 +define ( 'FRIENDICA_VERSION',      '3.1.1610' );
  define ( 'DFRN_PROTOCOL_VERSION',  '2.23'    );
  define ( 'DB_UPDATE_VERSION',      1159      );
  
@@@ -1327,7 -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;