X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmail.php;h=dffac32626e1e3ee3b48ee70045c53729926d31b;hb=69ac99ff949ab0118ff25a62471980ad0ec7a52b;hp=6e74d18066443097732930922e877fb490686747;hpb=05ff8925bf2d115bf2c249d6901f7f67b7ac7ba8;p=quix0rs-gnu-social.git diff --git a/lib/mail.php b/lib/mail.php index 6e74d18066..dffac32626 100644 --- a/lib/mail.php +++ b/lib/mail.php @@ -546,6 +546,10 @@ function mail_notify_message($message, $from=null, $to=null) function mail_notify_fave($other, $user, $notice) { + if (!$user->hasRight(Right::EMAILONFAVE)) { + return; + } + $profile = $user->getProfile(); $bestname = $profile->getBestName();