diff options
author | Evan Prodromou <evan@status.net> | 2009-12-08 17:52:20 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-08 17:52:20 -0500 |
commit | 21757186e9a7ffd2e3330fd4ef61ffeb2dc0229b (patch) | |
tree | e2715f48a0e8deeed92d98fe1504a4e9bf991a73 /lib/noticelist.php | |
parent | 985d6a0de424b682ebe7f3f90a504ba3e70f2f61 (diff) |
don't allow forwarding your own notice
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r-- | lib/noticelist.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index b38860880..d6ffc9ca9 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -540,7 +540,7 @@ class NoticeListItem extends Widget function showForwardForm() { $user = common_current_user(); - if ($user) { + if ($user && $user->id != $this->notice->profile_id) { $profile = $user->getProfile(); if ($profile->hasForwarded($this->notice->id)) { $this->out->text(_('Forwarded')); |