summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/subscribe.php2
-rw-r--r--actions/unsubscribe.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/subscribe.php b/actions/subscribe.php
index 8bb723799..8d04934b7 100644
--- a/actions/subscribe.php
+++ b/actions/subscribe.php
@@ -41,7 +41,7 @@ class SubscribeAction extends Action {
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
- common_redirect(common_local_url('subscriptions', array('nickname' => $user->nickname)));
+ $this->client_error(_('There was a problem with your session token. Try again, please.'));
return;
}
diff --git a/actions/unsubscribe.php b/actions/unsubscribe.php
index e0392413d..4bfaf7958 100644
--- a/actions/unsubscribe.php
+++ b/actions/unsubscribe.php
@@ -38,7 +38,7 @@ class UnsubscribeAction extends Action {
$token = $this->trimmed('token');
if (!$token || $token != common_session_token()) {
- common_redirect(common_local_url('subscriptions', array('nickname' => $user->nickname)));
+ $this->client_error(_('There was a problem with your session token. Try again, please.'));
return;
}