summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authormillette <millette@controlyourself.ca>2008-11-17 10:41:47 -0500
committermillette <millette@controlyourself.ca>2008-11-17 10:41:47 -0500
commit87d0235b54613d97162ad0e90ac9a562332dbb41 (patch)
tree634f9725f8022ede0f465618f2bfbc86b1dd26e5 /actions/showstream.php
parentf71f2d5ba8899a7639fb4ec422079b77387d3e47 (diff)
nudge: only show it when other person has enabled it.
darcs-hash:20081117154147-099f7-cf844aabcc3866eaf42312050a959dbc7cb10ed9.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 56858b477..3b8f71114 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -191,9 +191,11 @@ class ShowstreamAction extends StreamAction {
common_element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))),
_('Send a message'));
common_element_end('li');
- common_element_start('li', array('id' => 'profile_nudge'));
- common_nudge_form($user);
- common_element_end('li');
+ if ($user->email && $user->emailnotifynudge) {
+ common_element_start('li', array('id' => 'profile_nudge'));
+ common_nudge_form($user);
+ common_element_end('li');
+ }
}
common_element_end('ul');