Fix for ticket #2852: skip sending favorite notification emails if the favoriter is someone you've blocked.

This commit is contained in:
Brion Vibber 2010-11-03 15:17:46 -07:00
parent 51a756c211
commit 28e009898f
1 changed files with 4 additions and 0 deletions

View File

@ -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();