summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 3882af845..76249d14d 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -326,7 +326,25 @@ class ShowstreamAction extends Action
}
$this->elementEnd('li');
- common_profile_new_message_nudge($cur, $this->user, $this->profile);
+// common_profile_new_message_nudge($cur, $this->user, $this->profile);
+
+ $user = User::staticGet('id', $this->profile->id);
+ if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
+ $this->elementStart('li', array('id' => 'user_send-a-message'));
+ $this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)),
+ 'title' => _('Send a direct message to this user')),
+ _('Message'));
+ $this->elementEnd('li');
+
+ if ($user->email && $user->emailnotifynudge) {
+ $this->elementStart('li', array('id' => 'user_nudge'));
+ $nf = new NudgeForm($this, $user);
+ $nf->show();
+ $this->elementEnd('li');
+ }
+ }
+
+
if ($cur && $cur->id != $this->profile->id) {
$blocked = $cur->hasBlocked($this->profile);
@@ -349,7 +367,7 @@ class ShowstreamAction extends Action
$url = common_local_url('remotesubscribe',
array('nickname' => $this->profile->nickname));
$this->element('a', array('href' => $url,
- 'id' => 'remotesubscribe'),
+ 'id' => 'user_subscribe_remote'),
_('Subscribe'));
}