]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't show message link on your own page
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 17 Sep 2008 17:55:12 +0000 (13:55 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 17 Sep 2008 17:55:12 +0000 (13:55 -0400)
darcs-hash:20080917175512-5ed1f-0242ead7766806165266e424ed6d1cb9dd19abca.gz

actions/showstream.php

index 563a743bc52e58daf6c5d34090bfce38e7060639..af0bcb8097c5ac0496106becc5199a7e21de136b 100644 (file)
@@ -149,7 +149,7 @@ class ShowstreamAction extends StreamAction {
                
                $user = User::staticGet('id', $profile->id);
                
-               if ($cur->mutuallySubscribed($user)) {
+               if ($cur->id != $user->id && $cur->mutuallySubscribed($user)) {
                        common_element('a', array('href' => common_local_url('newmessage', array('nickname' => $user->nickname))),
                                                   _('Send a message'));
                }