diff options
author | millette <millette@controlyourself.ca> | 2008-11-17 10:41:47 -0500 |
---|---|---|
committer | millette <millette@controlyourself.ca> | 2008-11-17 10:41:47 -0500 |
commit | 87d0235b54613d97162ad0e90ac9a562332dbb41 (patch) | |
tree | 634f9725f8022ede0f465618f2bfbc86b1dd26e5 /actions/nudge.php | |
parent | f71f2d5ba8899a7639fb4ec422079b77387d3e47 (diff) |
nudge: only show it when other person has enabled it.
darcs-hash:20081117154147-099f7-cf844aabcc3866eaf42312050a959dbc7cb10ed9.gz
Diffstat (limited to 'actions/nudge.php')
-rw-r--r-- | actions/nudge.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/actions/nudge.php b/actions/nudge.php index 0f50e67ad..2685774a5 100644 --- a/actions/nudge.php +++ b/actions/nudge.php @@ -36,7 +36,7 @@ class NudgeAction extends Action { $other = User::staticGet('nickname', $other_nickname); $this->notify($user, $other); - if (true || $this->boolean('ajax')) { + if ($this->boolean('ajax')) { common_start_html('text/xml'); common_element_start('head'); common_element('title', null, _('Nudge sent')); @@ -46,8 +46,9 @@ class NudgeAction extends Action { common_element_end('body'); common_element_end('html'); } else { - common_redirect(common_local_url('nudge', - array('nickname' => $user->nickname))); + // display a confirmation to the user + common_redirect(common_local_url('showstream', + array('nickname' => $other->nickname))); } } |