Don't send @-reply notification if the mentioned person has blocked the sender
This commit is contained in:
parent
4b125eed96
commit
f21881d5fa
@ -736,6 +736,11 @@ function mail_notify_attn($user, $notice)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($user->hasBlocked($sender)) {
|
||||||
|
// If the author has blocked us, don't spam them with a notification.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$bestname = $sender->getBestName();
|
$bestname = $sender->getBestName();
|
||||||
|
|
||||||
common_switch_locale($user->language);
|
common_switch_locale($user->language);
|
||||||
|
Loading…
Reference in New Issue
Block a user