summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-17 13:53:56 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-17 13:53:56 -0400
commit124762160a15a5b2407ac2d1814dc195fd8c64f2 (patch)
tree4092aba4b1ba7024caaad67d741f734f0c0e39f0 /actions
parent130ba2888643992943780962dd4efcca3c595735 (diff)
add new message link to showstream
darcs-hash:20080917175356-5ed1f-5a84dc8363d7c1dbf60a82782aefe5a0bd6f3d59.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 7b41b8514..563a743bc 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'));