Fix for ticket #2852: skip sending favorite notification emails if the favoriter is someone you've blocked.
This commit is contained in:
parent
51a756c211
commit
28e009898f
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user