From: Evan Prodromou Date: Wed, 17 Sep 2008 17:53:56 +0000 (-0400) Subject: add new message link to showstream X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=124762160a15a5b2407ac2d1814dc195fd8c64f2;p=quix0rs-gnu-social.git add new message link to showstream darcs-hash:20080917175356-5ed1f-5a84dc8363d7c1dbf60a82782aefe5a0bd6f3d59.gz --- diff --git a/actions/showstream.php b/actions/showstream.php index 7b41b8514e..563a743bc5 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -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'));