From d73ed53535845af2ed0c731f9dbf7997ec470536 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 18 Sep 2008 11:28:23 -0400 Subject: [PATCH] don't notify you favor your own notice darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz --- actions/favor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/favor.php b/actions/favor.php index 142d83ae1f..a5163efed6 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); }