summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:28:23 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:28:23 -0400
commitd73ed53535845af2ed0c731f9dbf7997ec470536 (patch)
treedfe810f186c5a129a1829e182fb93ccc4fca8314 /actions
parentbd828b9fc7d1a9fa2a7fd157e81d0e50a82fac26 (diff)
don't notify you favor your own notice
darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/favor.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/favor.php b/actions/favor.php
index 142d83ae1..a5163efed 100644
--- a/actions/favor.php
+++ b/actions/favor.php
@@ -80,7 +80,7 @@ class FavorAction extends Action {
function notify($fave, $notice, $user) {
$other = User::staticGet('id', $notice->profile_id);
- if ($other) {
+ if ($other && $other->id != $user->id) {
if ($other->email && $other->emailnotifyfav) {
$this->notify_mail($other, $user, $notice);
}