summaryrefslogtreecommitdiff
path: root/lib/mail.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-23 09:00:05 -0800
committerEvan Prodromou <evan@status.net>2009-12-23 09:00:05 -0800
commit1adce16dd8b0f455afec49c0c926178facc1952c (patch)
tree357c83b41cf9605669f1d5f05ef8f1e56558a537 /lib/mail.php
parent71b7bdbcbee1529822a4e981ab9add240cc88113 (diff)
don't email replies to yourself
Diffstat (limited to 'lib/mail.php')
-rw-r--r--lib/mail.php4
1 files changed, 4 insertions, 0 deletions
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;
}