From 124762160a15a5b2407ac2d1814dc195fd8c64f2 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 17 Sep 2008 13:53:56 -0400 Subject: [PATCH] add new message link to showstream darcs-hash:20080917175356-5ed1f-5a84dc8363d7c1dbf60a82782aefe5a0bd6f3d59.gz --- actions/showstream.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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')); -- 2.39.5