From 1adce16dd8b0f455afec49c0c926178facc1952c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 23 Dec 2009 09:00:05 -0800 Subject: don't email replies to yourself --- lib/mail.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/mail.php') diff --git a/lib/mail.php b/lib/mail.php index dffac3262..472a88e06 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; } -- cgit v1.2.3-54-g00ecf