From: Evan Prodromou Date: Wed, 23 Dec 2009 17:00:05 +0000 (-0800) Subject: don't email replies to yourself X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1adce16dd8b0f455afec49c0c926178facc1952c;p=quix0rs-gnu-social.git don't email replies to yourself --- 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; }