From 1adce16dd8b0f455afec49c0c926178facc1952c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 23 Dec 2009 09:00:05 -0800 Subject: [PATCH] don't email replies to yourself --- lib/mail.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mail.php b/lib/mail.php index dffac32626..472a88e061 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -599,6 +599,10 @@ function mail_notify_attn($user, $notice) $sender = $notice->getProfile(); + if ($sender->id == $user->id) { + return; + } + if (!$sender->hasRight(Right::EMAILONREPLY)) { return; }