]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add new message link to showstream
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 17 Sep 2008 17:53:56 +0000 (13:53 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 17 Sep 2008 17:53:56 +0000 (13:53 -0400)
darcs-hash:20080917175356-5ed1f-5a84dc8363d7c1dbf60a82782aefe5a0bd6f3d59.gz

actions/showstream.php

index 7b41b8514e7b810c6c2a56c73ffcedd03a031abd..563a743bc52e58daf6c5d34090bfce38e7060639 100644 (file)
@@ -146,6 +146,14 @@ class ShowstreamAction extends StreamAction {
                } else {
                        $this->show_remote_subscribe_link($profile);
                }
+               
+               $user = User::staticGet('id', $profile->id);
+               
+               if ($cur->mutuallySubscribed($user)) {
+                       common_element('a', array('href' => common_local_url('newmessage', array('nickname' => $user->nickname))),
+                                                  _('Send a message'));
+               }
+               
                common_element_end('div');
 
                common_element_start('div', array('id' => 'profile_information'));