From: Evan Prodromou Date: Fri, 7 Sep 2012 14:27:14 +0000 (-0400) Subject: Don't send @-reply notification if the mentioned person has blocked the sender X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f21881d5faddd56f57f52dc1a1f699c3dc9518e3;p=quix0rs-gnu-social.git Don't send @-reply notification if the mentioned person has blocked the sender --- diff --git a/lib/mail.php b/lib/mail.php index 17a58de469..223721a345 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -736,6 +736,11 @@ function mail_notify_attn($user, $notice) return; } + if ($user->hasBlocked($sender)) { + // If the author has blocked us, don't spam them with a notification. + return; + } + $bestname = $sender->getBestName(); common_switch_locale($user->language);