mirror of
https://github.com/flarum/framework.git
synced 2025-03-04 02:41:53 +08:00
Fix broken notification emailer
This commit is contained in:
parent
54c2eaff8e
commit
0724aec77e
@ -16,10 +16,14 @@ class NotificationEmailer implements NotificationSender
|
|||||||
|
|
||||||
public function send(Notification $notification, User $user)
|
public function send(Notification $notification, User $user)
|
||||||
{
|
{
|
||||||
$this->mailer->send($notification->getEmailView(), ['notification' => $notification], function ($message) use ($notification, $recipient) {
|
$this->mailer->send(
|
||||||
$message->to($recipient->email, $recipient->username)
|
$notification->getEmailView(),
|
||||||
->subject('['.$this->forum->title.'] '.$notification->getEmailSubject());
|
compact('notification', 'user'),
|
||||||
});
|
function ($message) use ($notification, $user) {
|
||||||
|
$message->to($user->email, $user->username)
|
||||||
|
->subject('['.$this->forum->title.'] '.$notification->getEmailSubject());
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function compatibleWith($class)
|
public static function compatibleWith($class)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user