summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-08 17:52:20 -0500
committerEvan Prodromou <evan@status.net>2009-12-08 17:52:20 -0500
commit21757186e9a7ffd2e3330fd4ef61ffeb2dc0229b (patch)
treee2715f48a0e8deeed92d98fe1504a4e9bf991a73 /actions
parent985d6a0de424b682ebe7f3f90a504ba3e70f2f61 (diff)
don't allow forwarding your own notice
Diffstat (limited to 'actions')
-rw-r--r--actions/forward.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/forward.php b/actions/forward.php
index 867ed97d2..194833fe0 100644
--- a/actions/forward.php
+++ b/actions/forward.php
@@ -72,6 +72,11 @@ class ForwardAction extends Action
return false;
}
+ if ($this->user->id == $this->notice->profile_id) {
+ $this->clientError(_("You can't forward your own notice."));
+ return false;
+ }
+
$token = $this->trimmed('token-'.$id);
if (empty($token) || $token != common_session_token()) {