]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't email replies to yourself
authorEvan Prodromou <evan@status.net>
Wed, 23 Dec 2009 17:00:05 +0000 (09:00 -0800)
committerEvan Prodromou <evan@status.net>
Wed, 23 Dec 2009 17:00:05 +0000 (09:00 -0800)
lib/mail.php

index dffac32626e1e3ee3b48ee70045c53729926d31b..472a88e061c117a21121ef70f0525b030a736f60 100644 (file)
@@ -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;
     }