From 21757186e9a7ffd2e3330fd4ef61ffeb2dc0229b Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 8 Dec 2009 17:52:20 -0500 Subject: don't allow forwarding your own notice --- actions/forward.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actions') 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()) { -- cgit v1.2.3-54-g00ecf