From: Brion Vibber Date: Wed, 3 Nov 2010 22:17:46 +0000 (-0700) Subject: Fix for ticket #2852: skip sending favorite notification emails if the favoriter... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28e009898f6ce6dd72471a5ae4abbc91e6b00193;p=quix0rs-gnu-social.git Fix for ticket #2852: skip sending favorite notification emails if the favoriter is someone you've blocked. --- diff --git a/lib/mail.php b/lib/mail.php index 30d743848f..dd6a1a366e 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -593,6 +593,10 @@ function mail_notify_fave($other, $user, $notice) } $profile = $user->getProfile(); + if ($other->hasBlocked($profile)) { + // If the author has blocked us, don't spam them with a notification. + return; + } $bestname = $profile->getBestName();